From 7e80b951ac1cc0fff682c1e3f8aee4bd3753517c Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 30 Jun 2025 17:47:31 +0800 Subject: [PATCH] refactor: model params --- apps/models_provider/impl/openai_model_provider/model/llm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/models_provider/impl/openai_model_provider/model/llm.py b/apps/models_provider/impl/openai_model_provider/model/llm.py index f4a252a26..2d5b76af7 100644 --- a/apps/models_provider/impl/openai_model_provider/model/llm.py +++ b/apps/models_provider/impl/openai_model_provider/model/llm.py @@ -35,8 +35,8 @@ class OpenAIChatModel(MaxKBBaseModel, BaseChatOpenAI): streaming = False chat_open_ai = OpenAIChatModel( model=model_name, - api_base=model_credential.get('api_base'), - api_key=model_credential.get('api_key'), + openai_api_base=model_credential.get('api_base'), + openai_api_key=model_credential.get('api_key'), extra_body=optional_params, streaming=streaming, custom_get_token_ids=custom_get_token_ids