Skip to content

feat: add Fireworks context length detection support - #4158

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-9b1dadd7
Mar 31, 2026
Merged

feat: add Fireworks context length detection support#4158
teknium1 merged 1 commit into
mainfrom
hermes/hermes-9b1dadd7

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Salvage of PR #3989 by @sroecker with a fix: the models.dev provider key is fireworks-ai, not fireworks. The original mapping would silently fail the lookup and still fall back to 128K.

Changes:

  • model_metadata.py: add api.fireworks.aifireworks URL mapping
  • models_dev.py: add fireworksfireworks-ai provider mapping (corrected key)

Fireworks has 14 models on models.dev with correct context lengths (e.g. kimi-k2p5-turbo: 256K, deepseek-v3p1: 164K, glm-5: 203K).

- 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.
@teknium1
teknium1 merged commit 3a68ec3 into main Mar 31, 2026
2 of 3 checks passed
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
- 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)


Cherry-picked from PR NousResearch#3989 with models.dev key fix.

Co-authored-by: sroecker <sroecker@users.noreply.github.com>
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
- 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)


Cherry-picked from PR NousResearch#3989 with models.dev key fix.

Co-authored-by: sroecker <sroecker@users.noreply.github.com>
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
- 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)


Cherry-picked from PR NousResearch#3989 with models.dev key fix.

Co-authored-by: sroecker <sroecker@users.noreply.github.com>
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
- 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)


Cherry-picked from PR NousResearch#3989 with models.dev key fix.

Co-authored-by: sroecker <sroecker@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants