4 ms·
Hey, random question. Is there a technical reason why log probs aren't available when using function calling? It's not a problem, I've already found a workarou
by msp26 3y ago
Hey, random question.
Is there a technical reason why log probs aren't available when using function calling? It's not a problem, I've already found a workaround. I was just curious haha.
In general I feel like the function calling/tool use is a bit cumbersome and restrictive so I prefer to write the typescript in the functions namespace myself and just use json_mode.
- rattray 3y agoHave 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).