browserbase / stagehand

An AI web browsing framework focused on simplicity and extensibility.
https://www.browserbase.com
MIT License
1.16k stars 43 forks source link

repro zod error #198

Open kamath opened 1 day ago

kamath commented 1 day ago

why

what changed

test plan

filip-michalsky commented 1 day ago

this does not work. yet, sad

2024-11-21T21:40:07.221Z::[stagehand:undefined] error in extractPartners function 400 Invalid schema for response_format 'Extraction': In context=(), 'required' is required to be supplied and to be an Error: 400 Invalid schema for response_format 'Extraction': In context=(), 'required' is required to be supplied and t at APIError.generate (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules/openai/error.js:45:2 at OpenAI.makeStatusError (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules/openai/core.js: at OpenAI.makeRequest (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules/openai/core.js:337: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async OpenAIClient.createChatCompletion (eval at (/Users/filipmichalsky/Odyssey/clients/browserbase/ at async extract (eval at (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules/bra at async Stagehand.extract (eval at (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node at async Object.extract_partners (eval at (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/ at async Object.task (eval at (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules at async rootSpan.traced.name (/Users/filipmichalsky/Odyssey/clients/browserbase/stagehand/node_modules/braintrust/ ✅ extract_partners: Passed