Forked from lmstudio/openai-compat-endpoint
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",
"string",
{
displayName: "Model",
subtitle: "The model you want to use.",
},
"",
)
.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();