Skip to content

[Bug]: Undefined array key 'action' for /Responses/Responses/Output/OutputComputerToolCall.php #758

Description

@dking3876

Description

When using the computer tool type the response doesn't iclude an action array key but an actions with an (s) array key which contains multiple indexed items. per the response below, which is incompatable with the from function in OuputComputerToolCall::from(array $attributes)
array (size=5)
'id' => string 'cu_0183c8e712ba6fb30069dfc80ad8088196a691169d66cc0f38' (length=53)
'type' => string 'computer_call' (length=13)
'status' => string 'completed' (length=9)
'actions' =>
array (size=1)
0 =>
array (size=1)
'type' => string 'screenshot' (length=10)
'call_id' => string 'call_3TzpJMokCcC2brSF0NFSOEcy' (length=29)

Steps To Reproduce

Perform a responses call with tool type computer

OpenAI PHP Client Version

0.18.0

PHP Version

8.4

Notes

Ive reveiwed the repo and this method hasn't changed since computer tool because avaialble in 5.4 a few weeks ago.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions