fix(providers): correct Fireworks AI base URL to include /v1 path (#346)
The Fireworks API endpoint requires /v1/chat/completions, but the base URL was missing the /v1 path segment, causing 404 errors and triggering a broken responses fallback. Fix: Add /v1 to base URL so correct endpoint is built: https://api.fireworks.ai/inference/v1/chat/completions
This commit is contained in:
parent
e4944a5fc2
commit
5b19502bd9
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ pub fn create_provider(name: &str, api_key: Option<&str>) -> anyhow::Result<Box<
|
|||
"Together AI", "https://api.together.xyz", key, AuthStyle::Bearer,
|
||||
))),
|
||||
"fireworks" | "fireworks-ai" => Ok(Box::new(OpenAiCompatibleProvider::new(
|
||||
"Fireworks AI", "https://api.fireworks.ai/inference", key, AuthStyle::Bearer,
|
||||
"Fireworks AI", "https://api.fireworks.ai/inference/v1", key, AuthStyle::Bearer,
|
||||
))),
|
||||
"perplexity" => Ok(Box::new(OpenAiCompatibleProvider::new(
|
||||
"Perplexity", "https://api.perplexity.ai", key, AuthStyle::Bearer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue