Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/forge_domain/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ impl ProviderId {
pub const CODEX: ProviderId = ProviderId(Cow::Borrowed("codex"));
pub const OPENCODE_ZEN: ProviderId = ProviderId(Cow::Borrowed("opencode_zen"));
pub const NOVITA: ProviderId = ProviderId(Cow::Borrowed("novita"));
pub const FIREWORKS: ProviderId = ProviderId(Cow::Borrowed("fireworks"));

/// Returns all built-in provider IDs
///
Expand Down Expand Up @@ -102,6 +103,7 @@ impl ProviderId {
ProviderId::CODEX,
ProviderId::OPENCODE_ZEN,
ProviderId::NOVITA,
ProviderId::FIREWORKS,
]
}

Expand All @@ -126,6 +128,7 @@ impl ProviderId {
"minimax" => "MiniMax".to_string(),
"codex" => "Codex".to_string(),
"novita" => "Novita".to_string(),
"fireworks" => "Fireworks".to_string(),
_ => {
// For other providers, use UpperCamelCase conversion
use convert_case::{Case, Casing};
Expand Down Expand Up @@ -169,6 +172,7 @@ impl std::str::FromStr for ProviderId {
"minimax" => ProviderId::MINIMAX,
"codex" => ProviderId::CODEX,
"novita" => ProviderId::NOVITA,
"fireworks" => ProviderId::FIREWORKS,
// For custom providers, use Cow::Owned to avoid memory leaks
custom => ProviderId(Cow::Owned(custom.to_string())),
};
Expand Down
20 changes: 20 additions & 0 deletions crates/forge_repo/src/provider/provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -2564,5 +2564,25 @@
}
],
"auth_methods": ["api_key"]
},
{
"id": "fireworks",
"api_key_vars": "FIREWORKS_API_KEY",
"url_param_vars": [],
"response_type": "OpenAI",
"url": "https://api.fireworks.ai/inference/v1/chat/completions",
"models": [
{
"id": "accounts/fireworks/routers/kimi-k2p5-turbo",
"name": "Kimi K2.5 Turbo (FirePass)",
"description": "Fireworks FirePass router for Kimi K2.5 Turbo — intelligent routing for optimal cost-performance. Free tier via FirePass.",
"context_length": 131072,
"tools_supported": true,
"supports_parallel_tool_calls": true,
"supports_reasoning": true,
"input_modalities": ["text"]
}
],
"auth_methods": ["api_key"]
}
]
Loading