Skip to content

Commit 7e80b95

Browse files
committed
refactor: model params
1 parent da3c945 commit 7e80b95

File tree

1 file changed

+2
-2
lines changed
  • apps/models_provider/impl/openai_model_provider/model

1 file changed

+2
-2
lines changed

apps/models_provider/impl/openai_model_provider/model/llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def new_instance(model_type, model_name, model_credential: Dict[str, object], **
3535
streaming = False
3636
chat_open_ai = OpenAIChatModel(
3737
model=model_name,
38-
api_base=model_credential.get('api_base'),
39-
api_key=model_credential.get('api_key'),
38+
openai_api_base=model_credential.get('api_base'),
39+
openai_api_key=model_credential.get('api_key'),
4040
extra_body=optional_params,
4141
streaming=streaming,
4242
custom_get_token_ids=custom_get_token_ids

0 commit comments

Comments
 (0)