Skip to content

Support "reasoning_effort" option in AzureOpenAiChatOptions #2703

@andresssantos

Description

@andresssantos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions