Accessing logprob from API

One of the announcement from OpenAI DevDay Opening Keynote 7:20 is that logprob will be available very soon. Can anyone confirm has it been released yet?

Nothingburger:

TypeError: Completions.create() got an unexpected keyword argument ‘logprobs’

But that’s from the python library. A good amount of time patching the autogenerated mess of today’s python code to get the denial from the API:

openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘Unrecognized request argument supplied: logprobs’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}

logprobs is now available for Chat Completions API!

Thank you for your patience and support.

https://platform.openai.com/docs/api-reference/chat/create#chat-create-logprobs

2 Likes