From ca4a87ead3159f33ae6c5a657766b861f9011ae1 Mon Sep 17 00:00:00 2001 From: Kenny Date: Wed, 10 Apr 2024 15:46:02 +0800 Subject: [PATCH 1/2] Update config.py --- api/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/config.py b/api/config.py index e9f1658c60d62..f68a184337b49 100644 --- a/api/config.py +++ b/api/config.py @@ -42,7 +42,7 @@ 'HOSTED_OPENAI_TRIAL_ENABLED': 'False', 'HOSTED_OPENAI_TRIAL_MODELS': 'gpt-3.5-turbo,gpt-3.5-turbo-1106,gpt-3.5-turbo-instruct,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613,gpt-3.5-turbo-0613,gpt-3.5-turbo-0125,text-davinci-003', 'HOSTED_OPENAI_PAID_ENABLED': 'False', - 'HOSTED_OPENAI_PAID_MODELS': 'gpt-4,gpt-4-turbo-preview,gpt-4-1106-preview,gpt-4-0125-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613,gpt-3.5-turbo-1106,gpt-3.5-turbo-0613,gpt-3.5-turbo-0125,gpt-3.5-turbo-instruct,text-davinci-003', + 'HOSTED_OPENAI_PAID_MODELS': 'gpt-4,gpt-4-turbo-preview,gpt-4-turbo-2024-04-09,gpt-4-1106-preview,gpt-4-0125-preview,gpt-3.5-turbo,gpt-3.5-turbo-16k,gpt-3.5-turbo-16k-0613,gpt-3.5-turbo-1106,gpt-3.5-turbo-0613,gpt-3.5-turbo-0125,gpt-3.5-turbo-instruct,text-davinci-003', 'HOSTED_AZURE_OPENAI_ENABLED': 'False', 'HOSTED_AZURE_OPENAI_QUOTA_LIMIT': 200, 'HOSTED_ANTHROPIC_QUOTA_LIMIT': 600000, From 680ccdcfae35353ece0e0e5edc737dbaf4bbf53d Mon Sep 17 00:00:00 2001 From: Kenny Date: Wed, 10 Apr 2024 15:51:06 +0800 Subject: [PATCH 2/2] Update azure_openai.yaml --- .../model_providers/azure_openai/azure_openai.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/core/model_runtime/model_providers/azure_openai/azure_openai.yaml b/api/core/model_runtime/model_providers/azure_openai/azure_openai.yaml index 792d051d94901..828698acc7bd8 100644 --- a/api/core/model_runtime/model_providers/azure_openai/azure_openai.yaml +++ b/api/core/model_runtime/model_providers/azure_openai/azure_openai.yaml @@ -99,6 +99,12 @@ model_credential_schema: show_on: - variable: __model_type value: llm + - label: + en_US: gpt-4-turbo-2024-04-09 + value: gpt-4-turbo-2024-04-09 + show_on: + - variable: __model_type + value: llm - label: en_US: gpt-4-0125-preview value: gpt-4-0125-preview