Skip to content

[Bug]: improper handling of approvals #666

@pawelczak10

Description

@pawelczak10

Description

When making a request to mcp based on open ai documentation, I get the following error:

"/vendor/openai-php/client/src/Responses/Responses/Tool/RemoteMcpTool.php"

"OpenAI\Responses\Responses\Tool\RemoteMcpTool::{closure:OpenAI\Responses\Responses\Tool\RemoteMcpTool::from():49}(): Argument #1 ($approvalAttributes) must be of type array, null given"

Image

Steps To Reproduce

Is the approval service available in the latest version?

OpenAI PHP Client Version

0.16

PHP Version

8.3

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions