Forked from will-lms/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: "Name of the model to use for generation. Leave empty to omit from request.",
placeholder: "optional",
},
"",
)
.build();
export const globalConfigSchematics = createConfigSchematics()
.field(
"apiKey",
"string",
{
displayName: "API Key",
isProtected: true,
placeholder: "api-...",
},
"",
)
.field(
"baseUrl",
"string",
{
displayName: "Base URL",
subtitle: "Base URL for API calls.",
placeholder: "https://api.example.com/v1",
},
"https://api.anthropic.com/v1",
)
.field(
"requestReasoningKey",
"string",
{
displayName: "Request reasoning key",
subtitle: "Assistant message field used to replay hidden reasoning. Leave empty to disable replay.",
placeholder: "reasoning_content",
},
"reasoning_content",
)
.field(
"responseReasoningKey",
"string",
{
displayName: "Response reasoning key",
subtitle: "Stream delta field used to parse hidden reasoning. Leave empty to disable parsing.",
placeholder: "reasoning_content",
},
"reasoning_content",
)
.build();