feat: add Fireworks AI provider and fix model tier resolution#670
Merged
feat: add Fireworks AI provider and fix model tier resolution#670
Conversation
Add Fireworks AI as a new LLM provider, enabling access to models like Kimi K2.5, DeepSeek V3P2, and GLM-5 via the Fireworks inference API. - New provider package at packages/providers/fireworks/ - Register provider in core schemas, runtime factory, and TUI config - Add known models with context window metadata - Add E2E provider test case and CI secret for FIREWORKS_API_KEY Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The default fallback was hardcoded to "middle" tier, which caused providers with only "high" tier models (e.g. Fireworks) to fail model resolution. Now cascades high → middle → low via resolveModelTierWithFallback, ensuring the best available model is always selected. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@perstack/fireworks-provider)Changes
Fireworks provider
packages/providers/fireworks/— adapter, error handling, unit tests"fireworks"toProviderName,FireworksProviderConfigFIREWORKS_API_KEYenv mapping and provider config builderFIREWORKS_API_KEYto CI workflowModel tier resolution
resolveModelTierWithFallback()that cascades high → middle → lowcoordinator-executor.tsanddelegation-executor.tsto use cascade fallbackdefaultModelTierdoesn't matchTest plan
bun run test)🤖 Generated with Claude Code