diff --git a/apps/models_provider/impl/tencent_model_provider/model/image.py b/apps/models_provider/impl/tencent_model_provider/model/image.py index f093012a4..b63a50ac8 100644 --- a/apps/models_provider/impl/tencent_model_provider/model/image.py +++ b/apps/models_provider/impl/tencent_model_provider/model/image.py @@ -11,8 +11,8 @@ class TencentVision(MaxKBBaseModel, BaseChatOpenAI): optional_params = MaxKBBaseModel.filter_optional_params(model_kwargs) return TencentVision( model_name=model_name, - api_base='https://api.hunyuan.cloud.tencent.com/v1', - api_key=model_credential.get('api_key'), + openai_api_base='https://api.hunyuan.cloud.tencent.com/v1', + openai_api_key=model_credential.get('api_key'), # stream_options={"include_usage": True}, streaming=True, stream_usage=True,