-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
Description
Description
Tool execution approval rejections work with OpenAI provider but fail with Gateway provider.
Steps to repro:
- run
examples/ai-core/src/stream-text/openai-tool-approval.ts - change provider / model to use gateway
- ask for weather somewhere then reject the execution approval
When a user denies a tool execution approval (answers "n" to the approval prompt), the gateway returns a GatewayInvalidRequestError: Invalid input error, specifically complaining about invalid output field in the prompt at "prompt",3,"content",0,"output"
AI SDK Version
Latest
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable