fix: can not find model bug (#12051)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
@@ -872,7 +872,7 @@ class ProviderConfiguration(BaseModel):
|
||||
# if llm name not in restricted llm list, remove it
|
||||
restrict_model_names = [rm.model for rm in restrict_models]
|
||||
for model in provider_models:
|
||||
if model.model_type == ModelType.LLM and m.model not in restrict_model_names:
|
||||
if model.model_type == ModelType.LLM and model.model not in restrict_model_names:
|
||||
model.status = ModelStatus.NO_PERMISSION
|
||||
elif not quota_configuration.is_valid:
|
||||
model.status = ModelStatus.QUOTA_EXCEEDED
|
||||
|
Reference in New Issue
Block a user