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:
@@ -526,7 +526,7 @@ function applyThinkingLevelMetadata(model: Model<any>): void {
|
||||
if (model.provider === "openrouter" && model.id === "z-ai/glm-5.2") {
|
||||
mergeThinkingLevelMap(model, { xhigh: "xhigh" });
|
||||
}
|
||||
if (model.provider === "fireworks" && model.id === "accounts/fireworks/models/glm-5p2") {
|
||||
if (model.provider === "fireworks" && model.id.includes("glm-5p2")) {
|
||||
mergeThinkingLevelMap(model, { off: "none", minimal: null, low: "high", medium: "high", xhigh: "max" });
|
||||
}
|
||||
if (model.provider === "opencode-go" && model.id === "glm-5.2") {
|
||||
@@ -1670,7 +1670,7 @@ async function generateModels() {
|
||||
candidate.cost.output = 1.9;
|
||||
candidate.cost.cacheRead = 0.119;
|
||||
}
|
||||
if (candidate.provider === "fireworks" && candidate.id === "accounts/fireworks/models/glm-5p2") {
|
||||
if (candidate.provider === "fireworks" && candidate.id.includes("glm-5p2")) {
|
||||
candidate.api = "openai-completions";
|
||||
candidate.baseUrl = "https://api.fireworks.ai/inference/v1";
|
||||
candidate.compat = { supportsStore: false, supportsDeveloperRole: false };
|
||||
|
||||
Reference in New Issue
Block a user