Skip to content

Commit 1c5238c

Browse files
Update integration_openai_parallel_tool_calls.ts (#5824)
Correcting the Weather Schema's city type. z.enum -> z.string Co-authored-by: Brace Sproul <[email protected]>
1 parent a6f1224 commit 1c5238c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/models/chat/integration_openai_parallel_tool_calls.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const calculatorSchema = z
1717
.describe("A tool to perform basic arithmetic operations");
1818
const weatherSchema = z
1919
.object({
20-
city: z.enum(["add", "subtract", "multiply", "divide"]),
20+
city: z.string(),
2121
})
2222
.describe("A tool to get the weather in a city");
2323

0 commit comments

Comments
 (0)