-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add the fireworks AI provider #6652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mrubens
merged 5 commits into
RooCodeInc:main
from
ershang-fireworks:add-fireworks-provider
Aug 5, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| import type { ModelInfo } from "../model.js" | ||
|
|
||
| export type FireworksModelId = | ||
| | "accounts/fireworks/models/kimi-k2-instruct" | ||
| | "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507" | ||
| | "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct" | ||
| | "accounts/fireworks/models/deepseek-r1-0528" | ||
| | "accounts/fireworks/models/deepseek-v3" | ||
|
|
||
| export const fireworksDefaultModelId: FireworksModelId = "accounts/fireworks/models/kimi-k2-instruct" | ||
|
|
||
| export const fireworksModels = { | ||
| "accounts/fireworks/models/kimi-k2-instruct": { | ||
| maxTokens: 16384, | ||
| contextWindow: 128000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.6, | ||
| outputPrice: 2.5, | ||
| description: | ||
| "Kimi K2 is a state-of-the-art mixture-of-experts (MoE) language model with 32 billion activated parameters and 1 trillion total parameters. Trained with the Muon optimizer, Kimi K2 achieves exceptional performance across frontier knowledge, reasoning, and coding tasks while being meticulously optimized for agentic capabilities.", | ||
| }, | ||
| "accounts/fireworks/models/qwen3-235b-a22b-instruct-2507": { | ||
| maxTokens: 32768, | ||
| contextWindow: 256000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.22, | ||
| outputPrice: 0.88, | ||
| description: "Latest Qwen3 thinking model, competitive against the best closed source models in Jul 2025.", | ||
| }, | ||
| "accounts/fireworks/models/qwen3-coder-480b-a35b-instruct": { | ||
| maxTokens: 32768, | ||
| contextWindow: 256000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.45, | ||
| outputPrice: 1.8, | ||
| description: "Qwen3's most agentic code model to date.", | ||
| }, | ||
| "accounts/fireworks/models/deepseek-r1-0528": { | ||
| maxTokens: 20480, | ||
| contextWindow: 160000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 3, | ||
ershang-fireworks marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| outputPrice: 8, | ||
| description: | ||
| "05/28 updated checkpoint of Deepseek R1. Its overall performance is now approaching that of leading models, such as O3 and Gemini 2.5 Pro. Compared to the previous version, the upgraded model shows significant improvements in handling complex reasoning tasks, and this version also offers a reduced hallucination rate, enhanced support for function calling, and better experience for vibe coding. Note that fine-tuning for this model is only available through contacting fireworks at https://fireworks.ai/company/contact-us.", | ||
| }, | ||
| "accounts/fireworks/models/deepseek-v3": { | ||
| maxTokens: 16384, | ||
| contextWindow: 128000, | ||
| supportsImages: false, | ||
| supportsPromptCache: false, | ||
| inputPrice: 0.9, | ||
| outputPrice: 0.9, | ||
| description: | ||
| "A strong Mixture-of-Experts (MoE) language model with 671B total parameters with 37B activated for each token from Deepseek. Note that fine-tuning for this model is only available through contacting fireworks at https://fireworks.ai/company/contact-us.", | ||
| }, | ||
| } as const satisfies Record<string, ModelInfo> | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.