Use model type from ProviderModelEntry when listing models

This commit is contained in:
melonkernel 2025-09-04 12:45:58 +03:00
parent 5d52e0d2c5
commit 1fd5da3817
2 changed files with 58 additions and 1 deletions

View file

@ -103,7 +103,7 @@ class ModelRegistryHelper(ModelsProtocolPrivate):
Model(
identifier=id,
provider_resource_id=entry.provider_model_id,
model_type=ModelType.llm,
model_type=entry.model_type or ModelType.llm,
metadata=entry.metadata,
provider_id=self.__provider_id__,
)