Forked from
src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
// This file contains the definition of configuration schematics for your plugin.
export const configSchematics = createConfigSchematics()
.field(
"model",
"select",
{
displayName: "Model",
subtitle: "Select the model to use for generation.",
options: [
{ value: "gpt-5.4-mini", displayName: "gpt-5.4-mini (2.5M tokens/day)" },
{ value: "gpt-4.1-mini", displayName: "gpt-4.1-mini (2.5M tokens/day)" },
{ value: "gpt-4o-mini", displayName: "gpt-4o-mini (2.5M tokens/day)" },
{ value: "gpt-5.4", displayName: "gpt-5.4 (250K tokens/day)" },
{ value: "gpt-4o", displayName: "gpt-4o (250K tokens/day)" },
],
},
"gpt-5.4-mini", // ← default selection
)
.build();
export const globalConfigSchematics = createConfigSchematics()
.field(
"openaiApiKey",
"string",
{
displayName: "OpenAI API Key",
isProtected: true,
placeholder: "sk-...",
},
"",
)
.field(
"anthropicApiKey",
"string",
{
displayName: "Anthropic API Key",
isProtected: true,
placeholder: "ant-...",
},
"",
)
.field(
"overrideBaseUrl",
"string",
{
displayName: "(Optional) Override Base URL",
subtitle: "Override the base URL for API calls. Leave empty to let the plugin guess the base URL.",
placeholder: "https://api.example.com/v1",
},
"",
)
.build();