Replace the settings a story's runs override the model's defaults with.

PUT /ai/stories/{storyId}/settings

PUT https://dev.zanhosting.com/ai/stories/{storyId}/settings

Operations-ID ai.stories.storyId.settings.put
Zugriff Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Oder: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parameter

NameInTypBeschreibung
storyId Pfad Erforderlich string (snowflake) The story.

Anfragetext

Erforderlich, gesendet als application/x-www-form-urlencoded, application/json.

Schema: LlmSettingsBody

EigenschaftTypBeschreibung
temperature number (double), or null Optional How freely the model picks its words: higher is more varied, lower more focused.
dynatemp_range number (double), or null Optional Lets the temperature move this far either way, higher where the model is unsure of the next word. 0 keeps it fixed.
dynatemp_exponent number (double), or null Optional How sharply the dynamic temperature follows the model's doubt. Only matters with a dynamic temperature range.
top_k integer (int64), or null Optional Picks only among this many likeliest next words. 0 sets no limit.
top_p number (double), or null Optional Picks only among the likeliest next words that together make up this share of the chance. 1 sets no limit.
min_p number (double), or null Optional Drops every word less likely than this share of the likeliest one. 0 drops none.
typical_p number (double), or null Optional Keeps the words about as surprising as the text so far, up to this share of the chance. 1 turns it off.
top_n_sigma number (double), or null Optional Keeps only the words within this many standard deviations of the likeliest one, whatever the temperature. -1 turns it off.
xtc_probability number (double), or null Optional How often XTC removes the likeliest words, for less predictable writing. 0 turns it off.
xtc_threshold number (double), or null Optional How likely a word must be for XTC to remove it; above 0.5 removes none. Only matters with an XTC probability.
repeat_penalty number (double), or null Optional Makes words already used less likely. 1 turns it off.
repeat_last_n integer (int64), or null Optional How many of the last tokens the repeat, presence and frequency penalties look back over. 0 turns them off; -1 looks over the whole context.
presence_penalty number (double), or null Optional Makes any word already used less likely, however often, nudging toward new topics. 0 turns it off.
frequency_penalty number (double), or null Optional Makes a word less likely the more often it was used. 0 turns it off.
dry_multiplier number (double), or null Optional How hard DRY pushes against repeating whole phrases. 0 turns it off.
dry_base number (double), or null Optional How fast DRY's push grows as a repeated phrase gets longer. Only matters with a DRY multiplier.
dry_allowed_length integer (int64), or null Optional How long a repeated phrase may run before DRY pushes against it. Only matters with a DRY multiplier.
dry_penalty_last_n integer (int64), or null Optional How many of the last tokens DRY looks back over for repeats. 0 turns it off; -1 looks over the whole context. Only matters with a DRY multiplier.
mirostat one of: 0, 1, 2, null Optional Steers how surprising the text is toward a target. While it is on, it replaces Top K, Top P, Min P and the other samplers.
mirostat_tau number (double), or null Optional How surprising Mirostat keeps the text: lower is more focused. Only matters with Mirostat on.
mirostat_eta number (double), or null Optional How quickly Mirostat corrects toward its target. Only matters with Mirostat on.
max_tokens integer (int64), or null Optional Where a reply is cut off, its thinking included.
seed integer (int64), or null Optional The same seed and settings give the same reply to the same prompt. -1 picks a new one each time.
reasoning_effort one of: "none", "low", "medium", "xhigh", null Optional How hard the model thinks before it answers.
thinking_budget_tokens integer (int64), or null Optional The most tokens the model may think for before it must answer. -1 sets no limit.

Antworten

StatusBeschreibungSchemaInhaltstyp
200 Saved. StoryAnswer application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
Jeder andere Status The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

200 Saved.

EigenschaftTypBeschreibung
ai_stories_id string (snowflake) Erforderlich
ai_stories_title string Erforderlich
ai_stories_model_id string (snowflake) Erforderlich
model_label string, or null Erforderlich Null when the model is no longer offered.
ai_stories_system_prompt string Erforderlich Who the model is while it plans and writes. Empty makes it a skilled fiction writer.
ai_stories_planning_prompt string Erforderlich The idea, the characters you have in mind, the length: the plan is made from this.
ai_stories_writing_prompt string Erforderlich Style, voice, length of each chapter. Empty asks for the complete story, chapter by chapter, in vivid prose.
ai_stories_overrides LlmSettings Erforderlich
progress StoryProgress Erforderlich
models list of LlmModelOption Erforderlich The models one may pick.

422 The input was rejected; errors names each failure.

EigenschaftTypBeschreibung
type string Erforderlich A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.
errors InputErrors Erforderlich What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Jeder andere Status: The request was refused. The problem's type names why, and its detail explains it for people to read.

EigenschaftTypBeschreibung
type string Erforderlich A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.

Beispiel

curl -X PUT 'https://dev.zanhosting.com/ai/stories/{storyId}/settings' \
  -H 'Authorization: Bearer <access token>' \
  -H 'Content-Type: application/json' \
  -d '{}'

Gesamte Dokumentation

0 Datenbankabfragen · 12 Lesezugriffe aus dem Cache · 0.0 ms Wartezeit auf die Datenbank · 26,0 MiB Spitzenspeicher
public.settingsSELECTaus dem Cache
public.mesh_nodesSELECTaus dem Cache
public.fqdnsSELECTaus dem Cache
public.sitesSELECTaus dem Cache
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache