fix(ai): use completions API for all Fireworks GLM models

Route every GLM model through the OpenAI-compatible completions API.

Closes #8978
This commit is contained in:
David Brailovsky 2026-09-02 14:33:39 +02:00
parent 69afa10503
commit 1e4fbe3847

View file

@ -1392,7 +1392,7 @@ function processFireworksModels(provider: ModelsDevProvider | undefined): Model<
maxTokens: model.limit?.output || 4096,
};
if (modelId.includes("glm-5p2")) {
if (modelId.includes("glm-")) {
models.push({
...common,
api: "openai-completions",