-
-
Notifications
You must be signed in to change notification settings - Fork 635
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
As you can see in the legacy Completion method, support for logprobs is included:
public readonly ?CreateResponseChoiceLogprobs $logprobs, |
However, in the current Chat method, support for logprobs is completely missing:
final class CreateResponseChoice |
Please rectify this situation and add support for logprobs to Chat.
Thank you.
Steps To Reproduce
- Define a chat request as documented, specifying support for logprobs:
$response = $client->chat()->create([
'model' => 'gpt-3.5-turbo',
'messages' => [
['role' => 'user', 'content' => 'Hello!'],
],
'logprobs' => true,
]);
- Receive a response from the API that includes a logprobs array in choices.

- This attribute is missing from the CreateResponseChoice object -
final class CreateResponseChoice
OpenAI PHP Client Version
0.10.1
PHP Version
8.2
Notes
No response
sctice-ifixit
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working