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:
Vegard Stikbakke
2026-07-01 10:34:46 +02:00
parent 040f0a5197
commit 844d175eaf
4 changed files with 18 additions and 6 deletions
@@ -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",