mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 10:18:14 +00:00
feat(api): add Fireworks AI provider preset (#1543)
Promotes Fireworks AI to a first-class discoverable preset over the existing Anthropic-compatible Bearer path. Closes #890.
This commit is contained in:
1 parent
5320b4f418
commit
a472c44015
3 files changed
+67
-1
No files matched your search
@@ -23,6 +23,7 @@ export const PROVIDER_PRESET_IDS = [
|
||||
'qwen',
|
||||
'ollama-cloud',
|
||||
'novita',
|
||||
'fireworks',
|
||||
] as const;
|
||||
|
||||
export type ProviderPresetId = (typeof PROVIDER_PRESET_IDS)[number];
|
||||
@@ -266,6 +267,19 @@ const RAW_PROVIDER_PRESET_DEFINITIONS: readonly ProviderPresetDefinition[] = [
|
||||
badge: 'Anthropic-compatible',
|
||||
icon: '/icons/novita.svg',
|
||||
},
|
||||
{
|
||||
id: 'fireworks',
|
||||
name: 'Fireworks AI',
|
||||
description: 'Anthropic-compatible inference (Kimi, Qwen, Llama) via api.fireworks.ai',
|
||||
baseUrl: 'https://api.fireworks.ai/inference',
|
||||
defaultProfileName: 'fireworks',
|
||||
defaultModel: 'accounts/fireworks/models/kimi-k2p5',
|
||||
apiKeyPlaceholder: 'fw_...',
|
||||
apiKeyHint: 'Get your API key at fireworks.ai/api-keys',
|
||||
category: 'alternative',
|
||||
requiresApiKey: true,
|
||||
badge: 'Anthropic-compatible',
|
||||
},
|
||||
];
|
||||
|
||||
function clonePresetDefinition(preset: ProviderPresetDefinition): ProviderPresetDefinition {
|
||||
|
||||
Reference in new issue
Block a user