Skip to content

horde_sdk.ai_horde_api.apimodels.status

AIHordeHeartbeatResponse

Bases: HordeResponseBaseModel, ContainsMessageResponseMixin

Returns the status of the AI Horde API and a message if present.

Represents the data returned from the /v2/status/heartbeat endpoint with http status code 200.

v2 API Model: _ANONYMOUS_MODEL

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class AIHordeHeartbeatResponse(HordeResponseBaseModel, ContainsMessageResponseMixin):
    """Returns the status of the AI Horde API and a message if present.

    Represents the data returned from the /v2/status/heartbeat endpoint with http status code 200.

    v2 API Model: `_ANONYMOUS_MODEL`
    """

    version: str
    """The version of the AI Horde API that this node is running."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return _ANONYMOUS_MODEL

version instance-attribute

version: str

The version of the AI Horde API that this node is running.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return _ANONYMOUS_MODEL

AIHordeHeartbeatRequest

Bases: BaseAIHordeRequest

Request a heartbeat from the AI Horde API, suitable for checking if the API is up and running.

These requests may also return other meta information, such as the version of the API.

Represents a GET request to the /v2/status/heartbeat endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class AIHordeHeartbeatRequest(BaseAIHordeRequest):
    """Request a heartbeat from the AI Horde API, suitable for checking if the API is up and running.

    These requests may also return other meta information, such as the version of the API.

    Represents a GET request to the /v2/status/heartbeat endpoint.
    """

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_heartbeat

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[AIHordeHeartbeatResponse]:
        return AIHordeHeartbeatResponse

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_heartbeat

get_default_success_response_type classmethod

get_default_success_response_type() -> (
    type[AIHordeHeartbeatResponse]
)
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[AIHordeHeartbeatResponse]:
    return AIHordeHeartbeatResponse

HordePerformanceResponse

Bases: HordeResponseBaseModel

Information about the performance of the horde, such as worker counts and queue sizes.

Represents the data returned from the /v2/status/performance endpoint with http status code 200.

v2 API Model: HordePerformance

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class HordePerformanceResponse(HordeResponseBaseModel):
    """Information about the performance of the horde, such as worker counts and queue sizes.

    Represents the data returned from the /v2/status/performance endpoint with http status code 200.

    v2 API Model: `HordePerformance`
    """

    interrogator_count: int | None = Field(
        default=None,
        description=(
            "How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes."
        ),
    )
    """How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes."""
    interrogator_thread_count: int | None = Field(
        default=None,
        description=(
            "How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5"
            " minutes."
        ),
    )
    """How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5
    minutes."""
    past_minute_megapixelsteps: float | None = Field(
        default=None,
    )
    """How many megapixelsteps this horde generated in the last minute."""
    past_minute_tokens: float | None = Field(
        default=None,
    )
    """How many tokens this horde generated in the last minute."""
    queued_forms: float | None = Field(
        default=None,
    )
    """The amount of image interrogations waiting and processing currently in this horde."""
    queued_megapixelsteps: float | None = Field(
        default=None,
    )
    """The amount of megapixelsteps in waiting and processing requests currently in this horde."""
    queued_requests: int | None = Field(
        default=None,
    )
    """The amount of waiting and processing image requests currently in this horde."""
    queued_text_requests: int | None = Field(
        default=None,
    )
    """The amount of waiting and processing text requests currently in this horde."""
    queued_tokens: float | None = Field(
        default=None,
    )
    """The amount of tokens in waiting and processing requests currently in this horde."""
    text_thread_count: int | None = Field(
        default=None,
        description=(
            "How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5"
            " minutes."
        ),
    )
    """How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5
    minutes."""
    text_worker_count: int | None = Field(
        default=None,
    )
    """How many workers are actively processing prompt generations in this horde in the past 5 minutes."""
    thread_count: int | None = Field(
        default=None,
        description=(
            "How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5"
            " minutes."
        ),
    )
    """How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5
    minutes."""
    worker_count: int | None = Field(
        default=None,
    )
    """How many workers are actively processing prompt generations in this horde in the past 5 minutes."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return "HordePerformance"

interrogator_count class-attribute instance-attribute

interrogator_count: int | None = Field(
    default=None,
    description="How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes.",
)

How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes.

interrogator_thread_count class-attribute instance-attribute

interrogator_thread_count: int | None = Field(
    default=None,
    description="How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5 minutes.",
)

How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5 minutes.

past_minute_megapixelsteps class-attribute instance-attribute

past_minute_megapixelsteps: float | None = Field(
    default=None
)

How many megapixelsteps this horde generated in the last minute.

past_minute_tokens class-attribute instance-attribute

past_minute_tokens: float | None = Field(default=None)

How many tokens this horde generated in the last minute.

queued_forms class-attribute instance-attribute

queued_forms: float | None = Field(default=None)

The amount of image interrogations waiting and processing currently in this horde.

queued_megapixelsteps class-attribute instance-attribute

queued_megapixelsteps: float | None = Field(default=None)

The amount of megapixelsteps in waiting and processing requests currently in this horde.

queued_requests class-attribute instance-attribute

queued_requests: int | None = Field(default=None)

The amount of waiting and processing image requests currently in this horde.

queued_text_requests class-attribute instance-attribute

queued_text_requests: int | None = Field(default=None)

The amount of waiting and processing text requests currently in this horde.

queued_tokens class-attribute instance-attribute

queued_tokens: float | None = Field(default=None)

The amount of tokens in waiting and processing requests currently in this horde.

text_thread_count class-attribute instance-attribute

text_thread_count: int | None = Field(
    default=None,
    description="How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.",
)

How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.

text_worker_count class-attribute instance-attribute

text_worker_count: int | None = Field(default=None)

How many workers are actively processing prompt generations in this horde in the past 5 minutes.

thread_count class-attribute instance-attribute

thread_count: int | None = Field(
    default=None,
    description="How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.",
)

How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.

worker_count class-attribute instance-attribute

worker_count: int | None = Field(default=None)

How many workers are actively processing prompt generations in this horde in the past 5 minutes.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return "HordePerformance"

HordePerformanceRequest

Bases: BaseAIHordeRequest

Request performance information about the horde, such as worker counts and queue sizes.

Represents a GET request to the /v2/status/performance endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class HordePerformanceRequest(BaseAIHordeRequest):
    """Request performance information about the horde, such as worker counts and queue sizes.

    Represents a GET request to the /v2/status/performance endpoint.
    """

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_performance

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[HordePerformanceResponse]:
        return HordePerformanceResponse

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_performance

get_default_success_response_type classmethod

get_default_success_response_type() -> (
    type[HordePerformanceResponse]
)
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[HordePerformanceResponse]:
    return HordePerformanceResponse

Newspiece

Bases: HordeAPIObjectBaseModel

A piece of news from the horde, such as updates or other news from the AI-Horde team.

v2 API Model: Newspiece

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class Newspiece(HordeAPIObjectBaseModel):
    """A piece of news from the horde, such as updates or other news from the AI-Horde team.

    v2 API Model: `Newspiece`
    """

    date_published: str | None = Field(
        default=None,
    )
    """The date this newspiece was published."""
    importance: str | None = Field(default=None, examples=["Information"])
    """How critical this piece of news is."""
    newspiece: str | None = Field(
        default=None,
    )
    """The actual piece of news."""
    tags: list[str] | None = Field(
        default=None,
    )
    """The tags associated with this newspiece."""
    title: str | None = Field(
        default=None,
    )
    """The title of this newspiece."""
    more_info_urls: list[str] | None = Field(
        default=None,
    )
    """The URLs for more information about this newspiece."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return "Newspiece"

date_published class-attribute instance-attribute

date_published: str | None = Field(default=None)

The date this newspiece was published.

importance class-attribute instance-attribute

importance: str | None = Field(
    default=None, examples=["Information"]
)

How critical this piece of news is.

newspiece class-attribute instance-attribute

newspiece: str | None = Field(default=None)

The actual piece of news.

tags class-attribute instance-attribute

tags: list[str] | None = Field(default=None)

The tags associated with this newspiece.

title class-attribute instance-attribute

title: str | None = Field(default=None)

The title of this newspiece.

more_info_urls class-attribute instance-attribute

more_info_urls: list[str] | None = Field(default=None)

The URLs for more information about this newspiece.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return "Newspiece"

NewsResponse

Bases: HordeResponseRootModel[list[Newspiece]]

A list of newspieces from the horde, which are updates or other news from the AI-Horde team.

Represents the data returned from the /v2/status/news endpoint with http status code 200.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
@Unhashable
@Unequatable
class NewsResponse(HordeResponseRootModel[list[Newspiece]]):
    """A list of newspieces from the horde, which are updates or other news from the AI-Horde team.

    Represents the data returned from the /v2/status/news endpoint with http status code 200.
    """

    root: list[Newspiece]
    """The underlying list of newspieces."""

    def __iter__(self) -> Iterator[Newspiece]:  # type: ignore
        return iter(self.root)

    def __getitem__(self, index: int) -> Newspiece:
        return self.root[index]

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None  # FIXME

    def __eq__(self, other: object) -> bool:
        if not isinstance(other, NewsResponse):
            return False
        return all(newspiece in other.root for newspiece in self.root)

root instance-attribute

root: list[Newspiece]

The underlying list of newspieces.

__iter__

__iter__() -> Iterator[Newspiece]
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __iter__(self) -> Iterator[Newspiece]:  # type: ignore
    return iter(self.root)

__getitem__

__getitem__(index: int) -> Newspiece
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __getitem__(self, index: int) -> Newspiece:
    return self.root[index]

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None  # FIXME

__eq__

__eq__(other: object) -> bool
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __eq__(self, other: object) -> bool:
    if not isinstance(other, NewsResponse):
        return False
    return all(newspiece in other.root for newspiece in self.root)

NewsRequest

Bases: BaseAIHordeRequest

Request news from the horde, such as updates or other news from the AI-Horde team.

Represents a GET request to the /v2/status/news endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class NewsRequest(BaseAIHordeRequest):
    """Request news from the horde, such as updates or other news from the AI-Horde team.

    Represents a GET request to the /v2/status/news endpoint.
    """

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_news

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[NewsResponse]:
        return NewsResponse

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_news

get_default_success_response_type classmethod

get_default_success_response_type() -> type[NewsResponse]
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[NewsResponse]:
    return NewsResponse

HordeStatusModelsAllResponse

Bases: HordeResponseRootModel[list[ActiveModel]]

A list of details about active models in the horde.

Represents the data returned from the /v2/status/models endpoint with http status code 200.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
@Unhashable
@Unequatable
class HordeStatusModelsAllResponse(HordeResponseRootModel[list[ActiveModel]]):
    """A list of details about active models in the horde.

    Represents the data returned from the /v2/status/models endpoint with http status code 200.
    """

    root: list[ActiveModel]
    """The underlying list of models."""

    def __iter__(self) -> Iterator[ActiveModel]:  # type: ignore
        return iter(self.root)

    def __getitem__(self, index: int) -> ActiveModel:
        return self.root[index]

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None  # FIXME

    def __eq__(self, other: object) -> bool:
        if not isinstance(other, HordeStatusModelsAllResponse):
            return False
        return all(model in other.root for model in self.root)

root instance-attribute

root: list[ActiveModel]

The underlying list of models.

__iter__

__iter__() -> Iterator[ActiveModel]
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __iter__(self) -> Iterator[ActiveModel]:  # type: ignore
    return iter(self.root)

__getitem__

__getitem__(index: int) -> ActiveModel
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __getitem__(self, index: int) -> ActiveModel:
    return self.root[index]

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None  # FIXME

__eq__

__eq__(other: object) -> bool
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __eq__(self, other: object) -> bool:
    if not isinstance(other, HordeStatusModelsAllResponse):
        return False
    return all(model in other.root for model in self.root)

HordeStatusModelsAllRequest

Bases: BaseAIHordeRequest

Request details about models in the horde.

Represents a GET request to the /v2/status/models endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class HordeStatusModelsAllRequest(BaseAIHordeRequest):
    """Request details about models in the horde.

    Represents a GET request to the /v2/status/models endpoint.
    """

    type_: MODEL_TYPE = Field(
        default=MODEL_TYPE.image,
        examples=[MODEL_TYPE.image, MODEL_TYPE.text],
        alias="type",
    )
    """The type of model to filter by."""

    min_count: int | None = None
    """Filter only models that have at least this amount of threads serving."""
    max_count: int | None = None
    """Filter only models that have at most this amount of threads serving."""

    model_state: MODEL_STATE = MODEL_STATE.all
    """If 'known', only show stats for known models in the model reference. If 'custom' only show stats for custom
    models. If 'all' shows stats for all models."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_models_all

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[HordeStatusModelsAllResponse]:
        return HordeStatusModelsAllResponse

    @override
    @classmethod
    def get_query_fields(cls) -> list[str]:
        return ["type_", "min_count", "max_count"]

type_ class-attribute instance-attribute

type_: MODEL_TYPE = Field(
    default=MODEL_TYPE.image,
    examples=[MODEL_TYPE.image, MODEL_TYPE.text],
    alias="type",
)

The type of model to filter by.

min_count class-attribute instance-attribute

min_count: int | None = None

Filter only models that have at least this amount of threads serving.

max_count class-attribute instance-attribute

max_count: int | None = None

Filter only models that have at most this amount of threads serving.

model_state class-attribute instance-attribute

model_state: MODEL_STATE = MODEL_STATE.all

If 'known', only show stats for known models in the model reference. If 'custom' only show stats for custom models. If 'all' shows stats for all models.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_models_all

get_default_success_response_type classmethod

get_default_success_response_type() -> (
    type[HordeStatusModelsAllResponse]
)
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[HordeStatusModelsAllResponse]:
    return HordeStatusModelsAllResponse

get_query_fields classmethod

get_query_fields() -> list[str]
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_query_fields(cls) -> list[str]:
    return ["type_", "min_count", "max_count"]

HordeStatusModelsSingleResponse

Bases: HordeResponseRootModel[list[ActiveModel]]

A list of details about a single active model in the horde.

Represents the data returned from the /v2/status/models/{model_name} endpoint with http status code 200.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
@Unhashable
@Unequatable
class HordeStatusModelsSingleResponse(HordeResponseRootModel[list[ActiveModel]]):
    """A list of details about a single active model in the horde.

    Represents the data returned from the /v2/status/models/{model_name} endpoint with http status code 200.
    """

    # This is a list because of an oversight in the structure of the API response. # FIXME

    root: list[ActiveModel]
    """The underlying list of models."""

    def __iter__(self) -> Iterator[ActiveModel]:  # type: ignore
        return iter(self.root)

    def __getitem__(self, index: int) -> ActiveModel:
        return self.root[index]

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    def __eq__(self, other: object) -> bool:
        if not isinstance(other, HordeStatusModelsSingleResponse):
            return False
        return all(model in other.root for model in self.root)

root instance-attribute

root: list[ActiveModel]

The underlying list of models.

__iter__

__iter__() -> Iterator[ActiveModel]
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __iter__(self) -> Iterator[ActiveModel]:  # type: ignore
    return iter(self.root)

__getitem__

__getitem__(index: int) -> ActiveModel
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __getitem__(self, index: int) -> ActiveModel:
    return self.root[index]

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

__eq__

__eq__(other: object) -> bool
Source code in horde_sdk/ai_horde_api/apimodels/status.py
def __eq__(self, other: object) -> bool:
    if not isinstance(other, HordeStatusModelsSingleResponse):
        return False
    return all(model in other.root for model in self.root)

HordeStatusModelsSingleRequest

Bases: BaseAIHordeRequest

Request details about a single model in the horde by its name.

Represents a GET request to the /v2/status/models/{model_name} endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class HordeStatusModelsSingleRequest(BaseAIHordeRequest):
    """Request details about a single model in the horde by its name.

    Represents a GET request to the /v2/status/models/{model_name} endpoint.
    """

    model_name: str
    """The name of the model to request."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_models_single

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[HordeStatusModelsSingleResponse]:
        return HordeStatusModelsSingleResponse

model_name instance-attribute

model_name: str

The name of the model to request.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_models_single

get_default_success_response_type classmethod

get_default_success_response_type() -> (
    type[HordeStatusModelsSingleResponse]
)
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[HordeStatusModelsSingleResponse]:
    return HordeStatusModelsSingleResponse

HordeModes

Bases: HordeAPIObjectBaseModel

The current modes of the horde, such as maintenance mode, invite-only mode, and raid mode.

v2 API Model: HordeModes

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class HordeModes(HordeAPIObjectBaseModel):
    """The current modes of the horde, such as maintenance mode, invite-only mode, and raid mode.

    v2 API Model: `HordeModes`
    """

    maintenance_mode: bool = Field(
        default=False,
    )
    """Whether the horde is in maintenance mode."""

    invite_only_mode: bool = Field(
        default=False,
    )
    """Whether the horde is in invite-only mode."""

    raid_mode: bool = Field(
        default=False,
    )
    """Whether the horde is in raid mode."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return "HordeModes"

maintenance_mode class-attribute instance-attribute

maintenance_mode: bool = Field(default=False)

Whether the horde is in maintenance mode.

invite_only_mode class-attribute instance-attribute

invite_only_mode: bool = Field(default=False)

Whether the horde is in invite-only mode.

raid_mode class-attribute instance-attribute

raid_mode: bool = Field(default=False)

Whether the horde is in raid mode.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return "HordeModes"

SamplerConstraintsResponse

Bases: HordeResponseRootModel[SamplerConstraintsDocument]

The sampler constraints document this API publishes.

Represents the data returned from the /v2/status/sampler_constraints endpoint with http status code 200.

v2 API Model: SamplerConstraintsDocument

Source code in horde_sdk/ai_horde_api/apimodels/status.py
@Unhashable
@Unequatable
class SamplerConstraintsResponse(HordeResponseRootModel[SamplerConstraintsDocument]):
    """The sampler constraints document this API publishes.

    Represents the data returned from the /v2/status/sampler_constraints endpoint with http status code 200.

    v2 API Model: `SamplerConstraintsDocument`
    """

    root: SamplerConstraintsDocument
    """The whole sampler constraints document, keyed by the API's own request field names."""

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return "SamplerConstraintsDocument"

root instance-attribute

root: SamplerConstraintsDocument

The whole sampler constraints document, keyed by the API's own request field names.

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return "SamplerConstraintsDocument"

SamplerConstraintsRequest

Bases: BaseAIHordeRequest

Request the sampler constraints document describing which sampler settings this API accepts.

Represents a GET request to the /v2/status/sampler_constraints endpoint.

Source code in horde_sdk/ai_horde_api/apimodels/status.py
class SamplerConstraintsRequest(BaseAIHordeRequest):
    """Request the sampler constraints document describing which sampler settings this API accepts.

    Represents a GET request to the /v2/status/sampler_constraints endpoint.
    """

    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return None

    @override
    @classmethod
    def get_http_method(cls) -> HTTPMethod:
        return HTTPMethod.GET

    @override
    @classmethod
    def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
        return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_sampler_constraints

    @override
    @classmethod
    def get_default_success_response_type(cls) -> type[SamplerConstraintsResponse]:
        return SamplerConstraintsResponse

get_api_model_name classmethod

get_api_model_name() -> str | None
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_model_name(cls) -> str | None:
    return None

get_http_method classmethod

get_http_method() -> HTTPMethod
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_http_method(cls) -> HTTPMethod:
    return HTTPMethod.GET

get_api_endpoint_subpath classmethod

get_api_endpoint_subpath() -> AI_HORDE_API_ENDPOINT_SUBPATH
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_api_endpoint_subpath(cls) -> AI_HORDE_API_ENDPOINT_SUBPATH:
    return AI_HORDE_API_ENDPOINT_SUBPATH.v2_status_sampler_constraints

get_default_success_response_type classmethod

get_default_success_response_type() -> (
    type[SamplerConstraintsResponse]
)
Source code in horde_sdk/ai_horde_api/apimodels/status.py
@override
@classmethod
def get_default_success_response_type(cls) -> type[SamplerConstraintsResponse]:
    return SamplerConstraintsResponse