Skip to content

Commit

Permalink
fix: azure llm model not show some recommends
Browse files Browse the repository at this point in the history
--bug=1051028 --user=刘瑞斌 【模型管理】添加Azure OpenAI的大语言模型,基础模型的默认下拉列表模型信息错误 https://www.tapd.cn/57709429/s/1639196
  • Loading branch information
liuruibin committed Dec 30, 2024
1 parent 1e56d78 commit 7f9a11d
Showing 1 changed file with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,20 @@
base_azure_tts_model_credential = AzureOpenAITTSModelCredential()
base_azure_stt_model_credential = AzureOpenAISTTModelCredential()

default_model_info = ModelInfo('Azure OpenAI', '具体的基础模型由部署名决定', ModelTypeConst.LLM,
base_azure_llm_model_credential, AzureChatModel, api_version='2024-02-15-preview'
)
default_model_info = [
ModelInfo('Azure OpenAI', '具体的基础模型由部署名决定', ModelTypeConst.LLM,
base_azure_llm_model_credential, AzureChatModel, api_version='2024-02-15-preview'
),
ModelInfo('gpt-4', '', ModelTypeConst.LLM,
base_azure_llm_model_credential, AzureChatModel, api_version='2024-02-15-preview'
),
ModelInfo('gpt-4o', '', ModelTypeConst.LLM,
base_azure_llm_model_credential, AzureChatModel, api_version='2024-02-15-preview'
),
ModelInfo('gpt-4o-mini', '', ModelTypeConst.LLM,
base_azure_llm_model_credential, AzureChatModel, api_version='2024-02-15-preview'
),
]

embedding_model_info = [
ModelInfo('text-embedding-3-large', '具体的基础模型由部署名决定', ModelTypeConst.EMBEDDING,
Expand Down Expand Up @@ -77,8 +88,8 @@

model_info_manage = (
ModelInfoManage.builder()
.append_default_model_info(default_model_info)
.append_model_info(default_model_info)
.append_default_model_info(default_model_info[0])
.append_model_info_list(default_model_info)
.append_model_info_list(embedding_model_info)
.append_default_model_info(embedding_model_info[0])
.append_model_info_list(image_model_info)
Expand Down

0 comments on commit 7f9a11d

Please sign in to comment.