Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Undefined array key \"file_ids\"" #114

Open
alihemadeh opened this issue Jul 23, 2024 · 1 comment
Open

"Undefined array key \"file_ids\"" #114

alihemadeh opened this issue Jul 23, 2024 · 1 comment

Comments

@alihemadeh
Copy link

$threadRun = $openAi->threads()
->createAndRun([
'assistant_id' => $assistantId,
'thread' => [
'messages' => [
[
'role' => 'user',
'content' => $message,
],
],
],
]);

exception
:
"ErrorException"
file
:
"/usr/src/app/vendor/openai-php/client/src/Responses/Threads/Runs/ThreadRunResponse.php"
line
:
89
message
:
"Undefined array key "file_ids""

namespace OpenAI\Responses\Threads\Runs;
If I put on ThreadRunResponse.php
line 89
$attributes['file_ids'] ?? []
it works

@nanoeray
Copy link

have same problem, happend after migrating from v1 to v2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants