5 ms·
Have you seen/tried the `.runTools()` helper? Docs: https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls https://github.com/openai
by rattray 3y ago
Have you seen/tried the `.runTools()` helper?
Docs: https://github.com/openai/openai-node?tab=readme-ov-file#automated-function-calls https://github.com/openai/openai-node?tab=readme-ov-file#aut...
Example: https://github.com/openai/openai-node/blob/bb4bce30ff1bfb06d9d6c7a185d952121bb716e2/examples/tool-call-helpers-zod.ts#L39-L79 https://github.com/openai/openai-node/blob/bb4bce30ff1bfb06d...
(if what you're fundamentally trying to do is really just get JSON out, then I can see how json_mode is still easier).