fix: correct fetch_from for customizable models (#12400)

This commit is contained in:
kurokobo 2025-01-06 22:16:39 +09:00 committed by GitHub
parent aa6452b3bf
commit 8d75abc976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -978,7 +978,7 @@ class ProviderConfiguration(BaseModel):
label=custom_model_schema.label,
model_type=custom_model_schema.model_type,
features=custom_model_schema.features,
fetch_from=custom_model_schema.fetch_from,
fetch_from=FetchFrom.CUSTOMIZABLE_MODEL,
model_properties=custom_model_schema.model_properties,
deprecated=custom_model_schema.deprecated,
provider=SimpleModelProviderEntity(self.provider),