spring-projects / spring-projects/spring-ai

Azure OpenAI gpt-5.1-chat-2025-11-13 {"error":{"message":"The deployment doesn't support logprobs request parameter.","type":"invalid_request_error","code":"422"}}

Open
#5,016 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: waiting-for-triage
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

spring-ai version: 1.1.0

    <dependency>
      <groupId>org.springframework.ai</groupId>
      <artifactId>spring-ai-starter-model-azure-openai</artifactId>
    </dependency>
spring:
  ai:
    azure.openai:
      endpoint: ${ENDPOINT_URL}
      api-key: ${API_KEY}
      chat:
        options:
          deployment-name: gpt-5.1-chat-2025-11-13
  @Bean
  ChatClient chatClient(
      ChatClient.Builder chatClientBuilder
  ) {
    return chatClientBuilder
        .defaultOptions(AzureOpenAiChatOptions.builder()
            .logprobs(null)
            .reasoningEffort("none")
            .temperature(null)
            .build())
        .build();
  }

chatClient.prompt()
        .user("hi")
        .stream()
        .chatResponse();
{
    "az.sdk.message": "HTTP request",
    "method": "POST",
    "url": "https://my-corporate-proxy/openai/deployments/gpt-5.1-chat-2025-11-13/chat/completions?api-version=2025-01-01-preview",
    "tryCount": 1,
    "Content-Type": "application/json",
    "User-Agent": "spring-ai azsdk-java-azure-ai-openai/1.0.0-beta.16 (21.0.8; Mac OS X; 15.7.1)",
    "redactedHeaders": "Date,api-key,x-ms-client-request-id,Accept",
    "content-length": 179,
    "body": "{\"messages\":[{\"role\":\"user\",\"content\":[{\"text\":\"hi\",\"type\":\"text\"}]}],\"temperature\":0.7,\"stream\":true,\"model\":\"gpt-5.1-chat-2025-11-13\",\"logprobs\":false,\"reasoning_effort\":\"none\"}"
}

com.azure.core.exception.HttpResponseException: Status code 422, "{"error":{"message":"The deployment doesn't support logprobs request parameter.","type":"invalid_request_error","code":"422"}}"
at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException(RestProxyBase.java:388) ~[azure-core-1.55.3.jar:1.55.3]
at com.azure.core.implementation.http.rest.AsyncRestProxy.lambda$ensureExpectedStatus$1(AsyncRestProxy.java:135) ~[azure-core-1.55.3.jar:1.55.3]
at reactor.core.publisher.FluxMapFuseable$MapFuseableSubscriber.onNext(FluxMapFuseable.java:113) ~[reactor-core-3.7.11.jar:3.7.11]
at reactor.core.publisher.MonoUsing$MonoUsingSubscriber.onNext(MonoUsing.java:231) ~[reactor-core-3.7.11.jar:3.7.11]
at reactor.core.publisher.FluxHandle$HandleSubscriber.onNext(FluxHandle.java:129) ~[reactor-core-3.7.11.jar:3.7.11]
at reactor.core.publisher.FluxMap$MapConditionalSubscriber.onNext(FluxMap.java:224) ~[reactor-core-3.7.11.jar:3.7.11]
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113) ~[reactor-core-3.7.11.jar:3.7.11]
at reactor.core.publisher.FluxHandleFuseable$HandleFuseableSubscriber.onNext(FluxHandleFuseable.java:194) ~[reactor-core-3.7.11.jar:3.7.11]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Azure OpenAI chat-options and request serialization path used by spring-ai-starter-model-azure-openai, then reproduce the request with deployment gpt-5.1-chat-2025-11-13. The issue names no source file or test; done means the deployment no longer receives the unsupported logprobs request parameter and the request succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.