fix(providers): declare catalog-only aliases on their plugin profiles
Same class as minimax-portal: aliyun, deep-seek, nim/build-nvidia/nemotron and vertexai resolve in hermes_cli's alias tables but not in providers.get_provider_profile(), so a profile lookup keyed on the alias returned None and lost the profile's wire mode/extra_body/headers. qwen is left out: the catalog maps it to alibaba while the qwen-oauth plugin already claims it, a pre-existing disagreement outside this fix.
This commit is contained in:
@@ -9,7 +9,7 @@ from providers import register_provider
|
||||
from providers.base import ProviderProfile
|
||||
|
||||
alibaba = ProviderProfile(
|
||||
name="alibaba", aliases=("dashscope", "alibaba-cloud", "qwen-dashscope"), env_vars=("DASHSCOPE_API_KEY",),
|
||||
name="alibaba", aliases=("dashscope", "alibaba-cloud", "qwen-dashscope", "aliyun"), env_vars=("DASHSCOPE_API_KEY",),
|
||||
base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
||||
)
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class DeepSeekProfile(ProviderProfile):
|
||||
|
||||
|
||||
deepseek = DeepSeekProfile(
|
||||
name="deepseek", aliases=("deepseek-chat",), env_vars=("DEEPSEEK_API_KEY",), display_name="DeepSeek",
|
||||
name="deepseek", aliases=("deepseek-chat", "deep-seek"), env_vars=("DEEPSEEK_API_KEY",), display_name="DeepSeek",
|
||||
description="DeepSeek — native DeepSeek API", signup_url="https://platform.deepseek.com/",
|
||||
fallback_models=("deepseek-v4-pro", "deepseek-flash"), base_url="https://api.deepseek.com/v1",
|
||||
default_aux_model="deepseek-flash",
|
||||
|
||||
@@ -25,7 +25,7 @@ class NvidiaProviderProfile(ProviderProfile):
|
||||
|
||||
|
||||
nvidia = NvidiaProviderProfile(
|
||||
name="nvidia", aliases=("nvidia-nim",), env_vars=("NVIDIA_API_KEY",), display_name="NVIDIA NIM",
|
||||
name="nvidia", aliases=("nvidia-nim", "nim", "build-nvidia", "nemotron"), env_vars=("NVIDIA_API_KEY",), display_name="NVIDIA NIM",
|
||||
description="NVIDIA NIM — accelerated inference", signup_url="https://build.nvidia.com/",
|
||||
fallback_models=("nvidia/llama-3.1-nemotron-70b-instruct", "nvidia/llama-3.3-70b-instruct"),
|
||||
base_url="https://integrate.api.nvidia.com/v1", default_max_tokens=16384,
|
||||
|
||||
@@ -24,7 +24,7 @@ class VertexProfile(ProviderProfile):
|
||||
|
||||
|
||||
vertex = VertexProfile(
|
||||
name="vertex", aliases=("google-vertex", "vertex-ai", "gcp-vertex"), api_mode="chat_completions",
|
||||
name="vertex", aliases=("google-vertex", "vertex-ai", "gcp-vertex", "vertexai"), api_mode="chat_completions",
|
||||
env_vars=(), # OAuth2 via service account / ADC — not a static key env var
|
||||
base_url="https://aiplatform.googleapis.com", # real base_url computed at runtime
|
||||
auth_type="vertex", default_aux_model="google/gemini-3.6-flash",
|
||||
|
||||
Reference in New Issue
Block a user