feat(providers): add native xAI provider

Adds xAI as a first-class provider: ProviderConfig in auth.py,
HermesOverlay in providers.py, 11 curated Grok models, URL mapping
in model_metadata.py, aliases (x-ai, x.ai), and env var tests.
Uses standard OpenAI-compatible chat completions.

Closes #7050
This commit is contained in:
Julien Talbot
2026-04-10 12:51:30 +04:00
committed by Teknium
parent f07b35acba
commit 8bcb8b8e87
5 changed files with 39 additions and 0 deletions

View File

@@ -213,6 +213,7 @@ _URL_TO_PROVIDER: Dict[str, str] = {
"models.github.ai": "copilot",
"api.fireworks.ai": "fireworks",
"opencode.ai": "opencode-go",
"api.x.ai": "xai",
}