mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 01:01:42 +00:00
Closes #1671, switch to GLM-5 for tests
This commit is contained in:
parent
187a99c720
commit
afe9ae06e8
2 changed files with 3 additions and 27 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue