[azopenai] LogProbs and TopLogProbs rejected by Azure servers #22538
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Bug Report
Upon implementing
LogProbs
andTopLopProbs
parameters for Client.ChatCompletions, I am receiving errors from Azure.Upon calling
Client.ChatCompletion
withazopenai.ChatCompletionsOptions#LogProbs
populated, I receive the following error from the SDK:This is also easily reproducible with the AzureOpenAI Python SDK's ChatCompletions implementation. Due to Python's dynamic typing, I was able to pass an integer to
logprobs
(to circumvent the boolean issue), but thentop_logprobs
would be rejected with a different error:Unrecognized argument supplied: top_logprobs
. Thus, I believe there are two related issues and it appears they could be bugs in the Azure OpenAI backend, not the SDKs themself.I expect that Logprobs is implemented to OpenAI and Azure API spec: it should be a boolean.
I also expect Top Logprobs to be implemented and accepted by the server.
I performed tests on these model deployments:
I am utilizing API Version
2024-02-15-preview
.Thank you!
The text was updated successfully, but these errors were encountered: