- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 653
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Warning: Undefined array key "index" caused in Responses/Completions/CreateResponseChoice.php#L23
Steps To Reproduce
By receiving the following attributes:

from Openrouter.ai with different models, using
        $client = \OpenAI::factory()
            ->withApiKey($yourApiKey)
            ->withBaseUri('https://openrouter.ai/api/v1')
            ->make();
        $result = $client->completions()->create([
            //'model' => 'gpt-3.5-turbo-instruct',
            "model" => "google/gemini-2.0-pro-exp-02-05:free",
            'prompt' => 'Say this is a test',
            'max_tokens' => 6,
            'temperature' => 0
        ]);
OpenAI PHP Client Version
v0.10.3
PHP Version
8.4.3
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working