{"record":{"id":"656d9b7e828ca7fa","repo":"BerriAI/litellm","slug":"effort-xhigh-is-not-supported-by-this-model-got","errorCode":null,"errorMessage":"effort='xhigh' is not supported by this model. Got model: {model}","messagePattern":"effort='xhigh' is not supported by this model\\. Got model: (.+?)","errorType":"http","errorClass":"AnthropicError","httpStatus":400,"severity":"error","filePath":"litellm/llms/anthropic/experimental_pass_through/messages/transformation.py","lineNumber":306,"sourceCode":"            optional_params.pop(\"thinking\", None)\n            optional_params.pop(\"output_config\", None)\n            return\n\n        optional_params.setdefault(\"thinking\", mapped_thinking)\n        if AnthropicModelInfo._is_adaptive_thinking_model(model, custom_llm_provider):\n            mapped_effort: Final = REASONING_EFFORT_TO_OUTPUT_CONFIG_EFFORT.get(reasoning_effort)\n            if mapped_effort is None:\n                raise AnthropicError(\n                    message=(\n                        f\"Invalid reasoning_effort: {reasoning_effort!r}. \"\n                        f\"Must be one of: 'minimal', 'low', 'medium', 'high', \"\n                        f\"'xhigh', 'max', 'none'\"\n                    ),\n                    status_code=400,\n                )\n            gate_error: Final = AnthropicConfig._validate_effort_for_model(model, mapped_effort, custom_llm_provider)\n            if gate_error is not None:\n                raise AnthropicError(message=gate_error, status_code=400)\n            existing_output_config = optional_params.get(\"output_config\")\n            if not isinstance(existing_output_config, dict):\n                existing_output_config = {}\n            existing_output_config.setdefault(\"effort\", mapped_effort)\n            optional_params[\"output_config\"] = existing_output_config\n\n    @staticmethod\n    def _translate_legacy_thinking_for_adaptive_model(\n        model: str, optional_params: dict, custom_llm_provider: str\n    ) -> None:\n        \"\"\"Translate legacy ``thinking.type=enabled`` to adaptive for 4.6/4.7.\n        Caller-provided ``output_config.effort`` is never overridden.\n        \"\"\"\n        from litellm.llms.anthropic.chat.transformation import AnthropicConfig\n\n        if not AnthropicModelInfo._is_adaptive_thinking_model(model, custom_llm_provider):\n            return\n        thinking: Final = optional_params.get(\"thinking\")","sourceCodeStart":288,"sourceCodeEnd":324,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/anthropic/experimental_pass_through/messages/transformation.py#L288-L324","documentation":"Error \"effort='xhigh' is not supported by this model. Got model: {model}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/anthropic/experimental_pass_through/messages/transformation.py:306 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Lower effort to 'high' or below for this model, or switch to a model that supports effort='xhigh'."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}