|
|
|
@ -897,6 +897,7 @@ class ProviderConfiguration(BaseModel):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
except Exception as ex:
|
|
|
|
except Exception as ex:
|
|
|
|
logger.warning(f"get custom model schema failed, {ex}")
|
|
|
|
logger.warning(f"get custom model schema failed, {ex}")
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|
if not custom_model_schema:
|
|
|
|
if not custom_model_schema:
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
@ -909,9 +910,7 @@ class ProviderConfiguration(BaseModel):
|
|
|
|
custom_model_schema.model_type in model_setting_map
|
|
|
|
custom_model_schema.model_type in model_setting_map
|
|
|
|
and custom_model_schema.model in model_setting_map[custom_model_schema.model_type]
|
|
|
|
and custom_model_schema.model in model_setting_map[custom_model_schema.model_type]
|
|
|
|
):
|
|
|
|
):
|
|
|
|
model_setting = model_setting_map[custom_model_schema.model_type][
|
|
|
|
model_setting = model_setting_map[custom_model_schema.model_type][custom_model_schema.model]
|
|
|
|
custom_model_schema.model
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
if model_setting.enabled is False:
|
|
|
|
if model_setting.enabled is False:
|
|
|
|
status = ModelStatus.DISABLED
|
|
|
|
status = ModelStatus.DISABLED
|
|
|
|
|
|
|
|
|
|
|
|
|