fix(ai): align Fireworks GLM 5.2 Fast with GLM 5.2
Broaden the Fireworks GLM 5.2 special-case in generate-models.ts from an exact id match to a glm-5p2 substring match, so the router variant accounts/fireworks/routers/glm-5p2-fast also uses the OpenAI-compatible endpoint and thinkingLevelMap instead of falling back to the default Anthropic Messages config. closes #6195
This commit is contained in:
@@ -224,11 +224,12 @@ export const FIREWORKS_MODELS = {
|
||||
"accounts/fireworks/routers/glm-5p2-fast": {
|
||||
id: "accounts/fireworks/routers/glm-5p2-fast",
|
||||
name: "GLM 5.2 Fast",
|
||||
api: "anthropic-messages",
|
||||
api: "openai-completions",
|
||||
provider: "fireworks",
|
||||
baseUrl: "https://api.fireworks.ai/inference",
|
||||
compat: {"sendSessionAffinityHeaders":true,"supportsEagerToolInputStreaming":false,"supportsCacheControlOnTools":false,"supportsLongCacheRetention":false},
|
||||
baseUrl: "https://api.fireworks.ai/inference/v1",
|
||||
compat: {"supportsStore":false,"supportsDeveloperRole":false},
|
||||
reasoning: true,
|
||||
thinkingLevelMap: {"off":"none","minimal":null,"low":"high","medium":"high","xhigh":"max"},
|
||||
input: ["text"],
|
||||
cost: {
|
||||
input: 2.1,
|
||||
@@ -238,7 +239,7 @@ export const FIREWORKS_MODELS = {
|
||||
},
|
||||
contextWindow: 1048575,
|
||||
maxTokens: 131072,
|
||||
} satisfies Model<"anthropic-messages">,
|
||||
} satisfies Model<"openai-completions">,
|
||||
"accounts/fireworks/routers/kimi-k2p6-fast": {
|
||||
id: "accounts/fireworks/routers/kimi-k2p6-fast",
|
||||
name: "Kimi K2.6 Fast",
|
||||
|
||||
Reference in New Issue
Block a user