Skip to content

Commit d34aaa5

Browse files
committed
fix: added optional flag to numberOfShares zod schema
1 parent 16ec61a commit d34aaa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/chat/actions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ async function submitUserMessage(content: string) {
310310
price: z.number().describe('The price of the stock.'),
311311
numberOfShares: z
312312
.number()
313+
.optional()
313314
.describe(
314315
'The **number of shares** for a stock or currency to purchase. Can be optional if the user did not specify it.'
315316
)

0 commit comments

Comments
 (0)