{"record":{"id":"edc4a4af16246451","repo":"BerriAI/litellm","slug":"azure-does-not-support-value-as-a-param-para","errorCode":null,"errorMessage":"Azure does not support '{value}' as a {param} param, for api_version={api_version}. To drop 'tool_choice=required' for calls with this Azure API version, set `litellm.drop_params=True` or for proxy:\n\n`litellm_settings:\n drop_params: true`\nAzure API Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions","messagePattern":"Azure does not support '(.+?)' as a (.+?) param, for api_version=(.+?)\\. To drop 'tool_choice=required' for calls with this Azure API version, set `litellm\\.drop_params=True` or for proxy:\n\n`litellm_settings:\n drop_params: true`\nAzure API Reference: https://learn\\.microsoft\\.com/en-us/azure/ai-services/openai/reference#chat-completions","errorType":"exception","errorClass":"UnsupportedParamsError","httpStatus":400,"severity":"error","filePath":"litellm/llms/azure/chat/gpt_transformation.py","lineNumber":216,"sourceCode":"                    if (\n                        api_version_year < \"2023\"\n                        or (api_version_year == \"2023\" and api_version_month < \"12\")\n                        or (api_version_year == \"2023\" and api_version_month == \"12\" and api_version_day < \"01\")\n                    ):\n                        if litellm.drop_params is True or (drop_params is not None and drop_params is True):\n                            pass\n                        else:\n                            raise UnsupportedParamsError(\n                                status_code=400,\n                                message=f\"\"\"Azure does not support 'tool_choice', for api_version={api_version}. Bump your API version to '2023-12-01-preview' or later. This parameter requires 'api_version=\"2023-12-01-preview\"' or later. Azure API Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions\"\"\",\n                            )\n                    elif value == \"required\" and (\n                        api_version_year == \"2024\" and api_version_month <= \"05\"\n                    ):  ## check if tool_choice value is supported ##\n                        if litellm.drop_params is True or (drop_params is not None and drop_params is True):\n                            pass\n                        else:\n                            raise UnsupportedParamsError(\n                                status_code=400,\n                                message=f\"Azure does not support '{value}' as a {param} param, for api_version={api_version}. To drop 'tool_choice=required' for calls with this Azure API version, set `litellm.drop_params=True` or for proxy:\\n\\n`litellm_settings:\\n drop_params: true`\\nAzure API Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions\",\n                            )\n                    else:\n                        optional_params[\"tool_choice\"] = value\n            elif param == \"response_format\" and isinstance(value, dict):\n                _is_response_format_supported_model = self._is_response_format_supported_model(model)\n\n                if api_version_year is None or api_version_month is None:\n                    is_response_format_supported_api_version = True\n                else:\n                    is_response_format_supported_api_version = self._is_response_format_supported_api_version(\n                        api_version_year, api_version_month\n                    )\n                is_response_format_supported = (\n                    is_response_format_supported_api_version and _is_response_format_supported_model\n                )\n","sourceCodeStart":198,"sourceCodeEnd":234,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/azure/chat/gpt_transformation.py#L198-L234","documentation":"Error \"Azure does not support '{value}' as a {param} param, for api_version={api_version}. To drop 'tool_choice=required' for calls with this Azure API version, set `litellm.drop_params=True` or for proxy:\n\n`litellm_settings:\n drop_params: true`\nAzure API Reference: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference#chat-completions\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/azure/chat/gpt_transformation.py:216 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Change the parameter value to one supported by your Azure api_version, or bump api_version.","Set litellm.drop_params=True to drop the unsupported value."],"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-23T08:17:48.524Z"}