Kartik S
Results
2
comments of
Kartik S
Hey, @ViktorTrojan So A workaround for this issue is to manually convert your Zod schema into JSON Schema before passing it into response_format. Stagehand’s OpenAIClient does this automatically, but custom...
here’s a patched **CustomOpenAIClient** that mirrors the relevant parts of Stagehand’s **OpenAIClient** ``` import OpenAI, { ClientOptions } from "openai"; import { zodResponseFormat } from "openai/helpers/zod"; import zodToJsonSchema from "zod-to-json-schema";...