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 ai.chats.chatId.settings.put
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key.

パラメータ

名前場所型説明
chatId パス 必須 string (snowflake) The chat.

リクエストボディ

必須(application/x-www-form-urlencoded, application/json として送信)。

スキーマ: LlmSettingsBody

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

レスポンス

ステータス説明スキーマコンテンツタイプ
200 Saved. ChatAnswer application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
その他のステータス The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

200 Saved.

プロパティ型説明
ai_chats_id string (snowflake) 必須
ai_chats_title string 必須
ai_chats_model_id string (snowflake) 必須
model_label string, or null 必須 Null when the model is no longer offered.
ai_chats_overrides LlmSettings 必須
conversation ChatConversation 必須
chats list of ChatSummary 必須 Newest first.
models list of LlmModelOption 必須 The models one may pick.

422 The input was rejected; errors names each failure.

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

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

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

すべてのドキュメント

0件のデータベースステートメント · キャッシュからの読み取り 12件 · データベース待機時間 0.0 ms · ピークメモリ 26.0 MiB
public.settingsSELECTキャッシュから
public.mesh_nodesSELECTキャッシュから
public.fqdnsSELECTキャッシュから
public.sitesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから