Skip to content

Commit

Permalink
Together: add tool_calls=null exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Aug 1, 2024
1 parent a46c6be commit 928231c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ export namespace OpenAIWire_API_Chat_Completions {
role: z.literal('assistant').optional()
.nullable(), // [Deepseek] added .nullable()
content: z.string().nullable().optional(),
tool_calls: z.array(ChunkDeltaToolCalls_schema).optional(),
tool_calls: z.array(ChunkDeltaToolCalls_schema).optional()
.nullable(), // [TogetherAI] added .nullable(), see https://github.com/togethercomputer/together-python/issues/160
});

const ChunkChoice_schema = z.object({
Expand Down

0 comments on commit 928231c

Please sign in to comment.