Skip to content

fix(model-map): advertise max reasoning for GPT-5.6 and Azure Astra - #48098

Open
tin-berri wants to merge 1 commit into
mainfrom
litellm_47884_max_reasoning
Open

tin-berri wants to merge 1 commit into
mainfrom
litellm_47884_max_reasoning

Conversation

@tin-berri

@tin-berri tin-berri commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Model metadata now advertises max reasoning for GPT-5.6 and Azure GPT-6 Astra, so clients can offer the documented option. This corrects 23 entries, including dated Azure aliases, and keeps the bundled catalog in sync

Details

TLDR

Problem this solves:

  • Missing or false flags hide max from capability-based pickers

How it solves it:

  • Correct 18 GPT-5.6 entries and five Azure Astra entries
  • Check advertised capability agreement with existing Bedrock counterparts

User Flow

Before, the client hides a documented reasoning option

  1. A client reads GET /model/info or GET /utils/model_info?model=azure/gpt-6-astra
  2. The max capability is null or false, so its picker omits max

After, the client can offer max for the supported models

  1. A client reads the same metadata endpoints
  2. The max capability is true, so its picker can offer max

Relevant issues

Changes

  • Set the existing max capability flag on 23 rows in both catalogs
  • Cover catalog, SDK metadata and advertised effort agreement
  • Preserve declared max through adapters before final endpoint selection

Published support

Checked October 23, 2026. OpenAI explicitly lists max for Sol, Terra, Luna and Astra. Microsoft documents max through Responses for GPT-5.6 and GPT-6, and its catalog identifies the dated versions

Pre-Submission checklist

  • Added a regression covering the advertised capability
  • All 641 affected catalog, resolver and provider tests pass locally
  • Required CI and coverage complete
  • Scope limited to this metadata defect
  • Current-tip automated reviews complete and findings addressed

Screenshots / Proof of Fix

Actual local proxy, Python 3.12.15, isolated PostgreSQL 16, with LITELLM_LOCAL_MODEL_COST_MAP=True. Both instances report {"status":"healthy","db":"connected"}. The baseline process loaded its catalog before editing; the fixed process imported the committed worktree. No provider inference is involved in this metadata request

Before (f0f1540)

  1. Query the baseline proxy, using the isolated local test key

    curl -fsS --get http://127.0.0.1:47884/utils/model_info \
      --data-urlencode model=azure/gpt-6-astra \
      -H 'Authorization: Bearer sk-local-47884-demo' \
      | jq '{model,max:.model_info.supports_max_reasoning_effort}'
  2. Returns {"model":"azure/gpt-6-astra","max":false}. Checking all affected rows returns 18 nulls and five false values

After (e98f96e)

  1. Repeat the same request against the fixed proxy on port 47885
  2. Returns {"model":"azure/gpt-6-astra","max":true}. All 23 affected rows return true; four controls and all 27 sampled none flags are unchanged. /model/info also returns the corrected deployment metadata

The catalog regression fails for all four model families on baseline data and passes after the fix. All 641 affected tests pass locally, including both effort input forms and unsupported-model downgrade controls. make check, test ownership/shard checks and the trusted-base cost-map guard pass

CI and review

OSV reports three pypdf 6.21.1 advisories inherited from main. The base and CI merge have identical uv.lock hashes, and this PR changes no dependencies. Bugbot could not authenticate its review request; Greptile is requested and pending

Type

Bug Fix

Caveats

Medium

  • Azure Anthropic-message requests asking for max now retain it instead of silently downgrading to xhigh, so callers must select a Responses route
  • Max remains API-specific; plain Chat Completions can reject it

Low

  • Published docs establish provider support; live proof checks metadata
  • Screen recording unavailable locally; QuickTime disables that action

@tin-berri

Copy link
Copy Markdown
Contributor Author

@greptileai Please review the current tip, including provider documentation, catalog parity, dated aliases, and the regression covering advertised reasoning capabilities.

@codspeed

codspeed Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 35 untouched benchmarks


Comparing litellm_47884_max_reasoning (e98f96e) with main (8f9894f)

Open in CodSpeed

@tin-berri
tin-berri force-pushed the litellm_47884_max_reasoning branch from 305ce62 to e61cb3c Compare October 23, 2026 21:15
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tin-berri
tin-berri force-pushed the litellm_47884_max_reasoning branch from e61cb3c to e98f96e Compare October 23, 2026 21:20
@tin-berri

Copy link
Copy Markdown
Contributor Author

@greptileai Please review e98f96e, including catalog parity, Responses-only documentation, and the intentional preservation of max before final endpoint selection

@tin-berri

Copy link
Copy Markdown
Contributor Author

bugbot run Please review the current commit for catalog consistency and reasoning-effort regressions, including the documented Responses-only support for max

@cursor

cursor Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Skipping Bugbot: Unable to authenticate your request. Please make sure Bugbot is properly installed and configured for this repository.

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change reaches metadata and reasoning selection for a bounded set of GPT models.

Fix the Azure Messages route before merging so existing max requests do not start failing

Findings

  1. P1 Azure Messages requests fail ▶

Summary

The PR enables supports_max_reasoning_effort on 23 entries in both catalogs and updates tests for metadata lookup and adapter behavior

The author tin-berri notes that Azure Messages callers must select Responses. The changed flag also affects existing requests, but this PR does not switch plain Azure Messages calls to that route

  • GPT-5.6 and Azure Astra metadata now advertises max reasoning.
  • Azure GPT reasoning requests keep max until LiteLLM picks an endpoint.

Reviews (1) · Last reviewed commit: "fix(model-map): advertise max reasoning ..." · Reviewed by Greptile

"supports_computer_use": true,
"supports_function_calling": true,
"supports_max_reasoning_effort": false,
"supports_max_reasoning_effort": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Azure Messages requests fail

Azure gpt-6-astra Messages calls without tools or a summary now forward max to Chat Completions, which rejects it, instead of using xhigh. Route these requests through Responses before preserving max

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With real Azure calls, /v1/messages at max and no tools returns 200 on main and 400 on this branch for gpt-6-astra and gpt-5.6-sol

"supports_computer_use": true,
"supports_function_calling": true,
"supports_max_reasoning_effort": false,
"supports_max_reasoning_effort": true,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Azure /v1/messages without tools goes to Chat Completions, so max now gets a 400, where main sent xhigh. Please bridge max to Responses on Azure

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by #52097, which carries these max reasoning flags after re-checking OpenAI and Azure docs, with co-author credit.

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Reopening. #52097 kept only the chatgpt rows, since the Chat Completions route tests keep max off the OpenAI and Azure rows.

@veria-ai

veria-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

kerry-berri pushed a commit that referenced this pull request Nov 16, 2026
…wen4-max, max reasoning effort for ChatGPT GPT-5.6 (#52097)

* fix(model_prices): registry audit 2026-11-16, add dashscope qwen4-max, max reasoning effort for GPT-5.6 and Azure Astra

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* chore(model_prices): credit absorbed max reasoning effort flags from #48098

Co-authored-by: Tin <tin@berri.ai>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(model_prices): keep max effort off chat-route GPT-5.6 and Azure Astra rows

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Tin <tin@berri.ai>
@CLAassistant

CLAassistant commented Nov 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
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.

[Bug]: gpt-5.6-{sol,luna,terra} and azure gpt-6-astra missing supports_max_reasoning_effort in model map

3 participants