You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comregex_ai=re.compile(r'(?:\n<\|(?:.|\n)*?\|>(?=\n|$))|(?:<\|(?:.|\n)*?\|>\n?)') # Pattern for matching comments to remove them before sending them to the AI
378
378
comregex_ui=re.compile(r'(<\|(?:.|\n)*?\|>)') # Pattern for matching comments in the editor
379
379
sampler_order=utils.default_sampler_order.copy()
380
+
rng_states= {} # Used by the POST /generate endpoint to store sampler RNG states
prompt: str=fields.String(required=True, metadata={"description": "This is the submission."})
7455
7463
use_memory: bool=fields.Boolean(load_default=False, metadata={"description": "Whether or not to use the memory from the KoboldAI GUI when generating text."})
@@ -7469,6 +7477,9 @@ class GenerationInputSchema(SamplerSettingsSchema):
7469
7477
disable_input_formatting: bool=fields.Boolean(load_default=True, metadata={"description": "When enabled, all input formatting options default to `false` instead of the value in the KoboldAI GUI"})
7470
7478
frmtadsnsp: Optional[bool] =fields.Boolean(metadata={"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.\n\nIf `disable_input_formatting` is `true`, this defaults to `false` instead of the value in the KoboldAI GUI."})
7471
7479
quiet: Optional[bool] =fields.Boolean(metadata={"description": "When enabled, Generated output will not be displayed in the console."})
7480
+
sampler_order: Optional[List[int]] =fields.List(fields.Integer(), validate=[validate.Length(min=6), permutation_validator], metadata={"description": "Sampler order to be used. If N is the length of this array, then N must be greater than or equal to 6 and the array must be a permutation of the first N non-negative integers."})
7481
+
sampler_seed: Optional[int] =fields.Integer(validate=validate.Range(min=0, max=2**64-1), metadata={"description": "RNG seed to use for sampling. If not specified, the global RNG will be used."})
7482
+
sampler_full_determinism: Optional[bool] =fields.Boolean(metadata={"description": "If enabled, the generated text will always be the same as long as you use the same RNG seed, input and settings. If disabled, only the *sequence* of generated texts that you get when repeatedly generating text will be the same given the same RNG seed, input and settings."})
7472
7483
7473
7484
classGenerationResultSchema(KoboldSchema):
7474
7485
text: str=fields.String(required=True, metadata={"description": "Generated output as plain text."})
0 commit comments