Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions hermes_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,30 @@ class ProviderConfig:
api_key_env_vars=("HF_TOKEN",),
base_url_env_var="HF_BASE_URL",
),
"mistral": ProviderConfig(
id="mistral",
name="Mistral AI",
auth_type="api_key",
inference_base_url="https://api.mistral.ai/v1",
api_key_env_vars=("MISTRAL_API_KEY",),
base_url_env_var="MISTRAL_BASE_URL",
),
"nebius": ProviderConfig(
id="nebius",
name="Nebius AI",
auth_type="api_key",
inference_base_url="https://api.tokenfactory.nebius.com/v1",
api_key_env_vars=("NEBIUS_API_KEY",),
base_url_env_var="NEBIUS_BASE_URL",
),
"scaleway": ProviderConfig(
id="scaleway",
name="Scaleway Generative APIs",
auth_type="api_key",
inference_base_url="https://api.scaleway.ai/v1",
api_key_env_vars=("SCALEWAY_API_KEY", "SCW_SECRET_KEY"),
base_url_env_var="SCALEWAY_BASE_URL",
),
}


Expand Down
5 changes: 4 additions & 1 deletion hermes_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,9 @@ def select_provider_and_model():
("ai-gateway", "AI Gateway (Vercel — 200+ models, pay-per-use)"),
("alibaba", "Alibaba Cloud / DashScope Coding (Qwen + multi-provider)"),
("huggingface", "Hugging Face Inference Providers (20+ open models)"),
("mistral", "Mistral AI (direct API)"),
("nebius", "Nebius AI Studio (Llama, Qwen, DeepSeek)"),
("scaleway", "Scaleway Generative APIs (EU cloud, OpenAI-compatible)"),
]

# Add user-defined custom providers from config.yaml
Expand Down Expand Up @@ -1023,7 +1026,7 @@ def select_provider_and_model():
_model_flow_anthropic(config, current_model)
elif selected_provider == "kimi-coding":
_model_flow_kimi(config, current_model)
elif selected_provider in ("zai", "minimax", "minimax-cn", "kilocode", "opencode-zen", "opencode-go", "ai-gateway", "alibaba", "huggingface"):
elif selected_provider in ("zai", "minimax", "minimax-cn", "kilocode", "opencode-zen", "opencode-go", "ai-gateway", "alibaba", "huggingface", "mistral", "nebius", "scaleway"):
_model_flow_api_key_provider(config, selected_provider, current_model)


Expand Down
39 changes: 38 additions & 1 deletion hermes_cli/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,34 @@
"XiaomiMiMo/MiMo-V2-Flash",
"moonshotai/Kimi-K2-Thinking",
],
"mistral": [
"mistral-large-latest",
"mistral-medium-latest",
"mistral-small-latest",
"codestral-latest",
"devstral-small-latest",
"mistral-saba-latest",
"ministral-8b-latest",
"ministral-3b-latest",
],
"nebius": [
"deepseek-ai/DeepSeek-R1-0528",
"nvidia/Llama-3_1-Nemotron-Ultra-253B-v1",
"openai/gpt-oss-120b",
"moonshotai/Kimi-K2-Instruct",
"moonshotai/Kimi-K2-Thinking",
"zai-org/GLM-4.5",
"meta-llama/Llama-3.3-70B-Instruct",
],
"scaleway": [
"llama-3.3-70b-instruct",
"llama-3.1-8b-instruct",
"mistral-nemo-instruct-2407",
"qwen2.5-coder-32b-instruct",
"deepseek-r1",
"deepseek-r1-distill-llama-70b",
"phi-4",
],
}

_PROVIDER_LABELS = {
Expand All @@ -262,6 +290,9 @@
"kilocode": "Kilo Code",
"alibaba": "Alibaba Cloud (DashScope)",
"huggingface": "Hugging Face",
"mistral": "Mistral AI",
"nebius": "Nebius AI",
"scaleway": "Scaleway Generative APIs",
"custom": "Custom endpoint",
}

Expand Down Expand Up @@ -300,6 +331,12 @@
"hf": "huggingface",
"hugging-face": "huggingface",
"huggingface-hub": "huggingface",
"mistral-ai": "mistral",
"mistralai": "mistral",
"nebius-ai": "nebius",
"nebius-studio": "nebius",
"scw": "scaleway",
"scaleway-ai": "scaleway",
}


Expand Down Expand Up @@ -335,7 +372,7 @@ def list_available_providers() -> list[dict[str, str]]:
"openrouter", "nous", "openai-codex", "copilot", "copilot-acp",
"huggingface", "zai", "kimi-coding", "minimax", "minimax-cn", "kilocode", "anthropic", "alibaba",
"opencode-zen", "opencode-go",
"ai-gateway", "deepseek", "custom",
"ai-gateway", "deepseek", "mistral", "nebius", "scaleway", "custom",
]
# Build reverse alias map
aliases_for: dict[str, list[str]] = {}
Expand Down