Replace the settings a chat overrides its model's defaults with.

PUT /ai/chats/{chatId}/settings

PUT https://dev.zanhosting.com/ai/chats/{chatId}/settings

ID de operación ai.chats.chatId.settings.put
Acceso Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. O: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parámetros

NombreEnTipoDescripción
chatId Ruta Obligatorio string (snowflake) The chat.

Cuerpo de la solicitud

Obligatorio, enviado como application/x-www-form-urlencoded, application/json.

Esquema: LlmSettingsBody

PropiedadTipoDescripción
temperature number (double), or null Opcional How freely the model picks its words: higher is more varied, lower more focused.
dynatemp_range number (double), or null Opcional 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 Opcional How sharply the dynamic temperature follows the model's doubt. Only matters with a dynamic temperature range.
top_k integer (int64), or null Opcional Picks only among this many likeliest next words. 0 sets no limit.
top_p number (double), or null Opcional 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 Opcional Drops every word less likely than this share of the likeliest one. 0 drops none.
typical_p number (double), or null Opcional 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 Opcional 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 Opcional How often XTC removes the likeliest words, for less predictable writing. 0 turns it off.
xtc_threshold number (double), or null Opcional 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 Opcional Makes words already used less likely. 1 turns it off.
repeat_last_n integer (int64), or null Opcional 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 Opcional Makes any word already used less likely, however often, nudging toward new topics. 0 turns it off.
frequency_penalty number (double), or null Opcional Makes a word less likely the more often it was used. 0 turns it off.
dry_multiplier number (double), or null Opcional How hard DRY pushes against repeating whole phrases. 0 turns it off.
dry_base number (double), or null Opcional 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 Opcional 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 Opcional 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 Opcional 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 Opcional How surprising Mirostat keeps the text: lower is more focused. Only matters with Mirostat on.
mirostat_eta number (double), or null Opcional How quickly Mirostat corrects toward its target. Only matters with Mirostat on.
max_tokens integer (int64), or null Opcional Where a reply is cut off, its thinking included.
seed integer (int64), or null Opcional 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 Opcional How hard the model thinks before it answers.
thinking_budget_tokens integer (int64), or null Opcional The most tokens the model may think for before it must answer. -1 sets no limit.

Respuestas

EstadoDescripciónEsquemaTipo de contenido
200 Saved. ChatAnswer application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
Cualquier otro estado The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

200 Saved.

PropiedadTipoDescripción
ai_chats_id string (snowflake) Obligatorio
ai_chats_title string Obligatorio
ai_chats_model_id string (snowflake) Obligatorio
model_label string, or null Obligatorio Null when the model is no longer offered.
ai_chats_overrides LlmSettings Obligatorio
conversation ChatConversation Obligatorio
chats list of ChatSummary Obligatorio Newest first.
models list of LlmModelOption Obligatorio The models one may pick.

422 The input was rejected; errors names each failure.

PropiedadTipoDescripción
type string Obligatorio 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 Obligatorio The HTTP status as text, such as Not Found.
status integer (int32) Obligatorio The HTTP status code of the response.
detail string Obligatorio An explanation of what went wrong, written for people to read.
instance string Obligatorio The path the request was sent to.
errors InputErrors Obligatorio What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Cualquier otro estado: The request was refused. The problem's type names why, and its detail explains it for people to read.

PropiedadTipoDescripción
type string Obligatorio 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 Obligatorio The HTTP status as text, such as Not Found.
status integer (int32) Obligatorio The HTTP status code of the response.
detail string Obligatorio An explanation of what went wrong, written for people to read.
instance string Obligatorio The path the request was sent to.

Ejemplo

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

Toda la documentación

0 sentencias de base de datos · 12 lecturas de la caché · 0.0 ms esperando a la base de datos · 26,0 MiB de memoria pico
public.settingsSELECTde la caché
public.mesh_nodesSELECTde la caché
public.fqdnsSELECTde la caché
public.sitesSELECTde la caché
public.api_buildsSELECTde la caché
public.docs_guidesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.filesSELECTde la caché
public.api_buildsSELECTde la caché
public.docs_guidesSELECTde la caché