Skip to content

Replace retired models in the AutoGen Studio default gallery - #8310

Open
JingHao-Leon wants to merge 1 commit into
microsoft:mainfrom
JingHao-Leon:fix-retire-stale-gallery-models
Open

JingHao-Leon wants to merge 1 commit into
microsoft:mainfrom
JingHao-Leon:fix-retire-stale-gallery-models

Conversation

@JingHao-Leon

Copy link
Copy Markdown

Problem

The AutoGen Studio default gallery shipped two components whose vendors have retired the backing models, so every new Studio user started from failing requests (#8296):

Changes

Anthropic model client (gallery/builder.py, frontend default_gallery.json): the gallery now uses claude-sonnet-4-6 (Anthropic's recommended replacement), with an explicit entry in autogen_ext/models/anthropic/_model_info.py.

While verifying, I also found the Claude-4 family was entirely missing from _MODEL_TOKEN_LIMITS — get_token_limit("claude-sonnet-4-20250514") (and claude-opus-4-20250514, claude-sonnet-4-6, …) fell back to the 100000 default instead of the true 200000 context window. Those entries are added too.

Image generation tool (gallery/tools/generate_image.py + embedded source in default_gallery.json): switched to gpt-image-1-mini (a current model — gpt-image-1 itself is listed for shutdown on 2026-10-23, so the premium choice would be gpt-image-2; happy to switch if maintainers prefer). Parameter changes per the GPT Image API: response_format="b64_json" removed (gpt-image-* always returns base64 data) and the size literals move from DALL-E's 512x512/256x256 to 1024x1024 / 1536x1024 / 1024x1536 / auto.

Notes for reviewers

  • One nuance from the investigation: get_info("claude-sonnet-4-6") already resolved via the fuzzy startswith matcher in _model_info.get_info, so the reported ValueError doesn't reproduce on current main — the explicit registry entry (and the token-limit fix) is what this PR contributes on the autogen-ext side. Happy to split that into a separate PR if preferred.
  • The default_gallery.json is updated in sync with the Python side (component config, tool description, and the embedded generate_image source), so frontend and backend galleries stay consistent.

Fixes #8296

The default gallery shipped two components whose vendors have retired
the backing models, so every new Studio user started from failing
requests (issue microsoft#8296):

- Anthropic model client: claude-3-7-sonnet-20250219 was retired on
  2026-02-19. The gallery now uses claude-sonnet-4-6, registered
  explicitly in the Anthropic model-info registry (with a 200000 token
  limit; the Claude-4 family was entirely missing from
  _MODEL_TOKEN_LIMITS, so those models silently fell back to the
  100000 default).
- Image generation tool: dall-e-3 was shut down on 2026-05-12. The
  tool now calls gpt-image-1-mini; gpt-image-* always returns base64
  data so the response_format parameter is gone, and the size
  literals move to the sizes gpt-image supports (1024x1024,
  1536x1024, 1024x1536, auto).

The frontend default_gallery.json is updated in sync (component
config, tool description, and the embedded generate_image source).

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.

AutoGen Studio default gallery uses two retired models (claude-3-7-sonnet-20250219, dall-e-3)

1 participant