Skip to content

feat(azure): support reasoning models via Responses API routing - #3173

Open
yttrium400 wants to merge 2 commits into
letta-ai:mainfrom
yttrium400:fix/azure-reasoning-support
Open

feat(azure): support reasoning models via Responses API routing#3173
yttrium400 wants to merge 2 commits into
letta-ai:mainfrom
yttrium400:fix/azure-reasoning-support

Conversation

@yttrium400

Copy link
Copy Markdown

Fixes #3169. This PR implements dynamic routing for Azure OpenAI 'Responses API' requests (used by reasoning models like o1/o3). When input is present in the request payload, now utilizes the standard OpenAI (or AsyncOpenAI) client with a modified base URL (/openai/v1) as required by Azure.

@themavik themavik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request() now assigns api_version from env twice back-to-back in the BYOK branch (duplicate line) — looks accidental and should be one assignment. If a payload could ever include both input and messages you would take the chat path; fine if impossible, otherwise worth an explicit guard or comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure client fails with GPT-5/reasoning models - Responses API not supported

2 participants