hiddenhatpress / openai-assistants

A PHP client for OpenAI's assistants API
Apache License 2.0
8 stars 2 forks source link

error on get assistants #1

Closed ju4nr3v0l closed 3 months ago

ju4nr3v0l commented 5 months ago

when i try to access the assistants list // Access the assistant $entities = $asstservice->list();

i get this error:

"error" => array:4 [▼ "message" => "Invalid type for 'metadata': expected a metadata object, but got an array instead." "type" => "invalid_request_error" "param" => "metadata" "code" => "invalid_type"

getinstancemz commented 5 months ago

This should be fixed in v1.0.7 -- looks like openai got more picky about empty metadata.