Bug description

Unrecognized field "accepted_prediction_tokens" (class org.springframework.ai.openai.api.OpenAiApi$Usage$CompletionTokenDetails), not marked as ignorable (one known property: "reasoning_tokens"])

when trying to OpenAiChatModel.call() method

I think it need to add @JsonIgnoreProperties(ignoreUnknown = true) on org.springframework.ai.openai.api.OpenAiApi.Usage.CompletionTokenDetails

Comment From: VictorZZZZ

fixed in commit https://github.com/spring-projects/spring-ai/commit/cd886437eb1a6a5ec9bc7b7bf367a94a098c1dcc