Closes #1671, switch to GLM-5 for tests

This commit is contained in:
Mario Zechner 2026-02-27 21:35:40 +01:00
parent 187a99c720
commit afe9ae06e8
2 changed files with 3 additions and 27 deletions

View file

@ -167,7 +167,7 @@ export const streamOpenAICompletions: StreamFunction<"openai-completions", OpenA
calculateCost(model, output.usage);
}
const choice = chunk.choices[0];
const choice = chunk.choices?.[0];
if (!choice) continue;
if (choice.finish_reason) {