fix(tooling): surface non-executable tool-use warnings
This commit is contained in:
+11
-1
@@ -213,8 +213,18 @@ export class OpenAIClient implements ModelClient {
|
||||
}
|
||||
}
|
||||
|
||||
const toolsRequested = Boolean(request.tools && request.tools.length > 0);
|
||||
const content = toolsRequested
|
||||
? [
|
||||
'[provider-warning] OpenAI OAuth (Codex backend) does not support tool execution in Flynn yet.',
|
||||
'Requested tools were not sent to the provider, so any textual tool_use output is not executable.',
|
||||
'',
|
||||
outputText,
|
||||
].join('\n')
|
||||
: outputText;
|
||||
|
||||
return {
|
||||
content: outputText,
|
||||
content,
|
||||
stopReason: 'end_turn',
|
||||
usage: usage ?? { inputTokens: 0, outputTokens: 0 },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user