spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Support "reasoning_effort" option in AzureOpenAiChatOptions

Open andresssantos opened this issue 7 months ago • 4 comments
trafficstars

Current Behavior

Currently, it is not possible to set the reasoningEffort parameter when using AzureOpenAiChatOptions. This functionality is only available for OpenAiChatOptions.

Working example with OpenAiChatModel:

OpenAiChatOptions.builder()
                .reasoningEffort("low")
                .build();

Non-functional example with AzureOpenAiChatModel:

AzureOpenAiChatOptions.builder()
                .reasoningEffort("low")
                .build();

Expected Behavior

AzureOpenAiChatOptions should support the reasoningEffort parameter in the same way that OpenAiChatOptions does. This would allow users to configure the reasoning effort level when using Azure OpenAI models.

Context

Adding this functionality would enhance spring ai flexibility, enabling Azure enterprise users to utilize OpenAI o1 and o3 models with custom reasoning effort configurations. This is particularly valuable for organizations relying on Azure.

Version: 1.0.0-SNAPSHOT

andresssantos avatar Apr 11 '25 11:04 andresssantos