src / configSchematics.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"defaultTimezone",
"string",
{
displayName: "Default timezone",
hint: "IANA name (e.g. Europe/Paris, Asia/Tokyo). Leave empty to use the system timezone.",
},
"",
)
.field(
"defaultLocale",
"string",
{
displayName: "Default locale",
hint: "BCP 47 tag (e.g. fr-FR, en-US, ja-JP). Leave empty to use the system locale.",
},
"",
)
.field(
"dateFormat",
"select",
{
displayName: "Default format",
hint: "Format used for the `formatted` field returned by the tools.",
options: [
{ value: "iso", displayName: "ISO 8601 (2026-05-05T10:28:00+02:00)" },
{ value: "human", displayName: "Human (Tuesday, May 5, 2026 at 10:28 AM CEST)" },
{ value: "unix", displayName: "Unix seconds (1778041680)" },
],
},
"iso",
)
.build();