From ab6dcf7032110e5510ee6fa81e948646c319709b Mon Sep 17 00:00:00 2001 From: fengjiajie Date: Mon, 25 Nov 2024 21:13:02 +0800 Subject: [PATCH] fix: update the max tokens configuration for Azure GPT-4o (2024-08-06) to 16384 (#11074) --- .../model_runtime/model_providers/azure_openai/_constant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/model_runtime/model_providers/azure_openai/_constant.py b/api/core/model_runtime/model_providers/azure_openai/_constant.py index e61a9e0474b101..4cf58275d79fe3 100644 --- a/api/core/model_runtime/model_providers/azure_openai/_constant.py +++ b/api/core/model_runtime/model_providers/azure_openai/_constant.py @@ -779,7 +779,7 @@ class AzureBaseModel(BaseModel): name="frequency_penalty", **PARAMETER_RULE_TEMPLATE[DefaultParameterName.FREQUENCY_PENALTY], ), - _get_max_tokens(default=512, min_val=1, max_val=4096), + _get_max_tokens(default=512, min_val=1, max_val=16384), ParameterRule( name="seed", label=I18nObject(zh_Hans="种子", en_US="Seed"),