feat: introduce "enabled" field for providers

Closes: #2622
Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-07-04 17:13:01 +02:00
parent 5561f1c36d
commit 514b0aa4c5
No known key found for this signature in database
8 changed files with 353 additions and 327 deletions

View file

@ -25,6 +25,7 @@ class ProviderModelEntry(BaseModel):
llama_model: str | None = None
model_type: ModelType = ModelType.llm
metadata: dict[str, Any] = Field(default_factory=dict)
enabled: bool = Field(default=True, description="Whether the model is enabled")
def get_huggingface_repo(model_descriptor: str) -> str | None: