joemiller88
03/25/2024, 5:57 PM//from providers/openai.ts line 456
const output =
message.content === null ? message.function_call || message.tool_calls : message.content;
The use case which is becoming more popular is you want the content to be an inner monologue which determines the tool call.
My workaround for now is that I'll create a custom provider for OpenAI, and pass them both to output in a way that I can make assertions.ian
03/26/2024, 2:13 PMoutput field that could include tool call context and whatnot. Or alternatively, a dedicated tool call field in the return value