progress
ResponseGenerationProgressInfoMixin
Bases: HordeAPIObjectBaseModel
A mixin for responses that contain information about the progress of a generation request.
Source code in horde_sdk/ai_horde_api/apimodels/generate/progress.py
restarted
instance-attribute
The amount of jobs that timed out and had to be restarted or were reported as failed by a worker.
faulted
class-attribute
instance-attribute
True when this request caused an internal server error and could not be completed.
wait_time
instance-attribute
The expected amount to wait (in seconds) to generate all jobs in this request.
queue_position
instance-attribute
The position in the requests queue. This position is determined by relative Kudos amounts.
kudos
instance-attribute
The amount of total Kudos this request has consumed until now.
is_possible
class-attribute
instance-attribute
If False, this request will not be able to be completed with the pool of workers currently available.
model_config
class-attribute
instance-attribute
get_api_model_name
abstractmethod
classmethod
Return the name of the model as seen in the published swagger doc.
If none, there is no payload, such as for a GET request.
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
ResponseGenerationProgressCombinedMixin
Bases: ResponseWithProgressMixin, ResponseGenerationProgressInfoMixin
A mixin for responses which provide progress and detailed information about a generation.
Source code in horde_sdk/ai_horde_api/apimodels/generate/progress.py
model_config
class-attribute
instance-attribute
restarted
instance-attribute
The amount of jobs that timed out and had to be restarted or were reported as failed by a worker.
faulted
class-attribute
instance-attribute
True when this request caused an internal server error and could not be completed.
wait_time
instance-attribute
The expected amount to wait (in seconds) to generate all jobs in this request.
queue_position
instance-attribute
The position in the requests queue. This position is determined by relative Kudos amounts.
kudos
instance-attribute
The amount of total Kudos this request has consumed until now.
is_possible
class-attribute
instance-attribute
If False, this request will not be able to be completed with the pool of workers currently available.
get_api_model_name
abstractmethod
classmethod
Return the name of the model as seen in the published swagger doc.
If none, there is no payload, such as for a GET request.
get_sensitive_fields
classmethod
get_extra_fields_to_exclude_from_log
Return an additional set of fields to exclude from the log_safe_model_dump method.
log_safe_model_dump
Return a dict of the model's fields, with any sensitive fields redacted.
Source code in horde_sdk/generic_api/apimodels.py
is_job_complete
abstractmethod
Return whether the job is complete.
Parameters:
-
number_of_result_expected(int) –The number of results expected from the job.
Returns:
-
bool(bool) –Whether the job is complete.
Source code in horde_sdk/generic_api/apimodels.py
is_job_possible
abstractmethod
Return whether the job is possible.
Returns:
-
bool(bool) –Whether the job is possible.
is_final_follow_up
classmethod
get_finalize_success_request_type
abstractmethod
classmethod
Return the request type for this response to finalize the job on success, or None if not needed.