6 views
-/https://github.com/berriai/litellm/issues/30101
GitHub · issue

#30101 [Bug]: Model name detection fails for Opus 4.7/4.8 with Vertex @default suffix

  • State: open
  • Author: @awschmeder
  • Labels: llm translation

## Summary

LiteLLM's Opus 4.7/4.8 model detection does not tolerate the Vertex version suffix (`@default` etc.). This causes the model to be misidentified when used with the recommended model ID, which blocks configuration of adaptive thinking parameters and effort levels.

The model-name fallbacks in `litellm/llms/anthropic/common_utils.py` (specifically `_is_claude_4_7_model()`, the `opus_4.7` membership check in `_is_adaptive_thinking_model()`, and the missing explicit check for 4.8) recognize the bare name but fail when Vertex appends a version suffix.

## Evidence

```python _is_adaptive_thinking_model("vertex_ai/claude-opus-4-8@default") -> False # WRONG _is_adaptive_thinking_model("vertex_ai/claude-opus-4-8") -> True # OK

_model_supports_effort_param("claude-opus-4-8@default") -> False # WRONG _model_supports_effort_param("claude-opus-4-8") -> True # OK ```

Vertex routinely appends `@<version>` (e.g. `@default`, `@20251101`) to the model identifier, and that suffix survives provider-prefix stripping, so the detection helpers see `claude-opus-4-8@default` and fail to recognize it as an adaptive-thinking model.

The 4.6 name-based…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (2 events)
#0 of 0 · 31d18h44m33s ago — entered · #import:https:::github.com:berriai:litellm post #2122
26918 requires coordinated changes across container images, migration execution, filesystem permissions, and deployment configuration, with compatibility and security implications. 30101 is comparatively localized model-name matching logic with focused tests.
#0 of 0 · 31d17h47m4s ago — current · #import:https:::github.com:berriai:litellm post #3079
Issue 28221 is harder because it requires a coordinated database-access change, result reconciliation, preservation of edge-case semantics, and performance/regression coverage. Issue 30101 is a localized model-name normalization adjustment with comparatively narrow tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search