We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51cec03 commit 487f4b0Copy full SHA for 487f4b0
1 file changed
functions/lib/providers/openai.ts
@@ -113,6 +113,10 @@ export function normalizeHostedChatRequest(body: unknown): HostedChatRequest | n
113
const toolCalls = normalizeToolCalls(message.tool_calls);
114
if (toolCalls) {
115
normalized.tool_calls = toolCalls;
116
+
117
+ if (typeof normalized.content !== 'string' || normalized.content.trim().length === 0) {
118
+ normalized.content = 'Calling tools.';
119
+ }
120
}
121
122
if (typeof message.tool_call_id === 'string' && message.tool_call_id.trim()) {
0 commit comments