Compare commits

...

1 Commits

Author SHA1 Message Date
sroecker
0533d79647 feat: add Fireworks context length detection support
- Add api.fireworks.ai to _URL_TO_PROVIDER for automatic provider detection
- Add fireworks to PROVIDER_TO_MODELS_DEV mapped to 'fireworks-ai' (the
  correct models.dev provider key — original PR used 'fireworks' which
  would silently fail the lookup)

Co-authored-by: sroecker <sroecker@users.noreply.github.com>
Cherry-picked from PR #3989 with models.dev key fix.
2026-03-30 20:36:34 -07:00
2 changed files with 2 additions and 0 deletions

View File

@@ -176,6 +176,7 @@ _URL_TO_PROVIDER: Dict[str, str] = {
"api.deepseek.com": "deepseek", "api.deepseek.com": "deepseek",
"api.githubcopilot.com": "copilot", "api.githubcopilot.com": "copilot",
"models.github.ai": "copilot", "models.github.ai": "copilot",
"api.fireworks.ai": "fireworks",
} }

View File

@@ -43,6 +43,7 @@ PROVIDER_TO_MODELS_DEV: Dict[str, str] = {
"opencode-zen": "opencode", "opencode-zen": "opencode",
"opencode-go": "opencode-go", "opencode-go": "opencode-go",
"kilocode": "kilo", "kilocode": "kilo",
"fireworks": "fireworks-ai",
} }