Skip to content

_submit

AlchemyJobSubmitResponse

Bases: HordeResponseBaseModel

Source code in horde_sdk/ai_horde_api/apimodels/alchemy/_submit.py
class AlchemyJobSubmitResponse(HordeResponseBaseModel):
    @override
    @classmethod
    def get_api_model_name(cls) -> str | None:
        return "GenerationSubmitted"

    reward: float
    """The kudos reward for this job."""

reward instance-attribute

reward: float

The kudos reward for this job.

get_api_model_name classmethod

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

AlchemyJobSubmitRequest

Bases: BaseAIHordeRequest, JobRequestMixin, APIKeyAllowedInRequestMixin

Source code in horde_sdk/ai_horde_api/apimodels/alchemy/_submit.py
class AlchemyJobSubmitRequest(BaseAIHordeRequest, JobRequestMixin, APIKeyAllowedInRequestMixin):
    result: str  # FIXME
    """The result of the alchemy job."""
    state: GENERATION_STATE
    """The state of this generation. See `GENERATION_STATE` for more information."""

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

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

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

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

result instance-attribute

result: str

The result of the alchemy job.

state instance-attribute

state: GENERATION_STATE

The state of this generation. See GENERATION_STATE for more information.

get_api_model_name classmethod

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

get_http_method classmethod

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

get_api_endpoint_subpath classmethod

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

get_default_success_response_type classmethod

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