_async
TextGenerateAsyncResponse
Bases: HordeResponseBaseModel, JobResponseMixin, ResponseRequiringFollowUpMixin, ContainsMessageResponseMixin
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
kudos
class-attribute
instance-attribute
The expected kudos consumption for this request.
warnings
class-attribute
instance-attribute
Any warnings that were generated by the server or a serving worker.
validate_warnings
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
get_follow_up_returned_params
get_follow_up_default_request_type
classmethod
get_follow_up_request_types
classmethod
get_follow_up_failure_cleanup_request_type
classmethod
get_api_model_name
classmethod
__hash__
ModelPayloadRootKobold
Bases: HordeAPIData
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | |
dynatemp_exponent
class-attribute
instance-attribute
Dynamic temperature exponent value.
dynatemp_range
class-attribute
instance-attribute
Dynamic temperature range value.
frmtadsnsp
class-attribute
instance-attribute
frmtadsnsp: bool | None = Field(default=None, description='Input formatting option. When enabled, adds a leading space to your input if there is no trailing whitespace at the end of the previous action.', examples=[False])
Input formatting option. When enabled, adds a leading space to your input if there is no trailing whitespace at the end of the previous action.
frmtrmblln
class-attribute
instance-attribute
frmtrmblln: bool | None = Field(default=None, description='Output formatting option. When enabled, replaces all occurrences of two or more consecutive newlines in the output with one newline.', examples=[False])
Output formatting option. When enabled, replaces all occurrences of two or more consecutive newlines in the output with one newline.
frmtrmspch
class-attribute
instance-attribute
Output formatting option. When enabled, removes #/@%}{+=~|\^<> from the output.
frmttriminc
class-attribute
instance-attribute
frmttriminc: bool | None = Field(default=None, description="Output formatting option. When enabled, removes some characters from the end of the output such that the output doesn't end in the middle of a sentence. If the output is less than one sentence long, does nothing.", examples=[False])
Output formatting option. When enabled, removes some characters from the end of the output such that the output doesn't end in the middle of a sentence. If the output is less than one sentence long, does nothing.
max_context_length
class-attribute
instance-attribute
Maximum number of tokens to send to the model.
max_length
class-attribute
instance-attribute
Number of tokens to generate.
min_p
class-attribute
instance-attribute
Min-p sampling value.
n
class-attribute
instance-attribute
The number of generations to produce.
rep_pen
class-attribute
instance-attribute
Base repetition penalty value.
rep_pen_range
class-attribute
instance-attribute
Repetition penalty range.
rep_pen_slope
class-attribute
instance-attribute
Repetition penalty slope.
sampler_order
class-attribute
instance-attribute
The sampler order to use for the generation.
singleline
class-attribute
instance-attribute
singleline: bool | None = Field(default=None, description='Output formatting option. When enabled, removes everything after the first line of the output, including the newline.', examples=[False])
Output formatting option. When enabled, removes everything after the first line of the output, including the newline.
smoothing_factor
class-attribute
instance-attribute
Quadratic sampling value.
stop_sequence
class-attribute
instance-attribute
The stop sequences to use for the generation.
temperature
class-attribute
instance-attribute
Temperature value.
tfs
class-attribute
instance-attribute
Tail free sampling value.
top_a
class-attribute
instance-attribute
Top-a sampling value.
top_k
class-attribute
instance-attribute
Top-k sampling value.
top_p
class-attribute
instance-attribute
Top-p sampling value.
typical
class-attribute
instance-attribute
Typical sampling value.
ModelGenerationInputKobold
Bases: ModelPayloadRootKobold
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
TextGenerateAsyncDryRunResponse
Bases: HordeResponseBaseModel
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
TextGenerateAsyncRequest
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin, RequestUsesWorkerMixin
Represents the data needed to make a request to the /v2/generate/async endpoint.
v2 API Model: GenerationInputKobold
Source code in horde_sdk/ai_horde_api/apimodels/generate/text/_async.py
params
class-attribute
instance-attribute
The parameters to use for the generation.
prompt
class-attribute
instance-attribute
The prompt which will be sent to KoboldAI to generate text.
allow_downgrade
class-attribute
instance-attribute
When true and the request requires upfront kudos and the account does not have enough The request will be downgraded in max context and max tokens so that it does not need upfront kudos.
disable_batching
class-attribute
instance-attribute
When true, This request will not use batching. This will allow you to retrieve accurate seeds. Feature is restricted to Trusted users and Patreons.
extra_source_images
class-attribute
instance-attribute
Any extra source images that should be used for this request; e.g., for multi-modal models.
proxied_account
class-attribute
instance-attribute
If using a service account as a proxy, provide this value to identify the actual account from which this request is coming from.
softprompt
class-attribute
instance-attribute
Specify which softprompt needs to be used to service this request.
webhook
class-attribute
instance-attribute
Provide a URL where the AI Horde will send a POST call after each delivered generation. The request will include the details of the job as well as the request ID.