diff --git a/horde_sdk/ai_horde_api/apimodels/workers/_workers.py b/horde_sdk/ai_horde_api/apimodels/workers/_workers.py index 6d18cb1..4009257 100644 --- a/horde_sdk/ai_horde_api/apimodels/workers/_workers.py +++ b/horde_sdk/ai_horde_api/apimodels/workers/_workers.py @@ -189,10 +189,15 @@ def get_api_model_name(cls) -> str | None: class AllWorkersDetailsRequest(BaseAIHordeRequest, APIKeyAllowedInRequestMixin): - """Returns information on all works. If a moderator API key is specified, it will return additional information.""" + """Returns information on all workers. + + If a moderator API key is specified, it will return additional information. + """ type_: WORKER_TYPE = Field(WORKER_TYPE.all, alias="type") """Filter workers by type. Default is 'all' which returns all workers.""" + name: str | None = Field(None) + """Returns a worker matching the exact name provided. Case insensitive.""" @override @classmethod @@ -217,7 +222,7 @@ def get_default_success_response_type(cls) -> type[AllWorkersDetailsResponse]: @override @classmethod def get_query_fields(cls) -> list[str]: - return ["type_"] + return ["type_", "name"] @classmethod def is_api_key_required(cls) -> bool: