You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix max_tokens parameter support for GPT-5 and newer models
- Add _is_new_generation_model() helper to detect models requiring max_completion_tokens
- Automatically convert max_tokens to max_completion_tokens for GPT-5, o-series, and reasoning models
- Update allowed_params to include max_completion_tokens
- Handle model name detection from selected_model, AZURE_AI_MODEL, and URL extraction
- Update version to 2.7.0 and add feature documentation
Fixes Azure OpenAI error: "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead."
Co-authored-by: owndev <69784886+owndev@users.noreply.github.com>
description: A pipeline for interacting with Azure AI services, enabling seamless communication with various AI models via configurable headers and robust error handling. This includes support for Azure OpenAI models as well as other Azure AI models by dynamically managing headers and request configurations. Azure AI Search (RAG) integration is only supported with Azure OpenAI endpoints.
10
10
features:
@@ -18,6 +18,7 @@
18
18
- Azure AI Search / RAG integration with native OpenWebUI citations (Azure OpenAI only)
19
19
- Automatic [docX] to markdown link conversion for clickable citations
20
20
- Relevance scores from Azure AI Search displayed in citation cards
21
+
- Automatic max_tokens to max_completion_tokens conversion for GPT-5+ and o-series models
0 commit comments