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
11 changes: 11 additions & 0 deletions hermes_cli/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,14 @@ class ProviderConfig:
api_key_env_vars=("AZURE_FOUNDRY_API_KEY",),
base_url_env_var="AZURE_FOUNDRY_BASE_URL",
),
"vertex": ProviderConfig(
id="vertex",
name="Google Vertex AI",
auth_type="gcp_sdk",
inference_base_url="", # Computed at runtime from project_id + region
api_key_env_vars=(),
base_url_env_var="",
),
}

# Auto-extend PROVIDER_REGISTRY with any api-key provider registered in
Expand Down Expand Up @@ -1776,6 +1784,9 @@ def resolve_provider(
"go": "opencode-go", "opencode-go-sub": "opencode-go",
"kilo": "kilocode", "kilo-code": "kilocode", "kilo-gateway": "kilocode",
"lmstudio": "lmstudio", "lm-studio": "lmstudio", "lm_studio": "lmstudio",
# Vertex aliases
"google-vertex": "vertex", "vertex-ai": "vertex",
"gcp-vertex": "vertex", "vertexai": "vertex",
# Local server aliases — route through the generic custom provider
"ollama": "custom", "ollama_cloud": "ollama-cloud",
"vllm": "custom", "llamacpp": "custom",
Expand Down
10 changes: 10 additions & 0 deletions hermes_cli/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ class HermesOverlay:
transport="bedrock_converse",
auth_type="aws_sdk",
),
"vertex": HermesOverlay(
transport="openai_chat",
auth_type="gcp_sdk",
),
}


Expand Down Expand Up @@ -370,6 +374,11 @@ class ProviderDef:
"llamacpp": "local",
"llama.cpp": "local",
"llama-cpp": "local",
# vertex
"google-vertex": "vertex",
"vertex-ai": "vertex",
"gcp-vertex": "vertex",
"vertexai": "vertex",
}


Expand All @@ -392,6 +401,7 @@ class ProviderDef:
"bedrock": "AWS Bedrock",
"ollama-cloud": "Ollama Cloud",
"xai-oauth": "xAI Grok OAuth (SuperGrok / Premium+)",
"vertex": "Google Vertex AI",
}


Expand Down
Loading