Kizuki
HTTP API
GitHub
Preparing search index...
lib/settings
writeSettings
Function writeSettings
writeSettings
(
home
:
string
,
settings
:
{
chat
:
{
apiKeyEnv
?:
string
;
baseURL
:
string
;
model
:
string
;
reasoning
:
"none"
|
"default"
;
replyShape
:
"server"
|
"prompt"
;
}
;
embed
:
{
apiKeyEnv
?:
string
;
baseURL
:
string
;
model
:
string
}
;
}
,
)
:
Promise
<
void
>
Checks and saves the settings. Writes to a temporary file first so a crash never leaves half a file.
Parameters
home
:
string
settings
:
{
chat
:
{
apiKeyEnv
?:
string
;
baseURL
:
string
;
model
:
string
;
reasoning
:
"none"
|
"default"
;
replyShape
:
"server"
|
"prompt"
;
}
;
embed
:
{
apiKeyEnv
?:
string
;
baseURL
:
string
;
model
:
string
}
;
}
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
HTTP API
GitHub
Kizuki
Loading...
Checks and saves the settings. Writes to a temporary file first so a crash never leaves half a file.