Forked from
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",
"string",
{
displayName: "Model",
subtitle: "Model ID as recognized by your inference server (sent verbatim).",
placeholder: "publisher/model-name",
},
"",
)
.build();
export const globalConfigSchematics = createConfigSchematics()
.field(
"apiKey",
"string",
{
displayName: "API Key",
subtitle:
"Sent as the Bearer token. If your server has auth disabled, enter any placeholder value (required by the client library).",
isProtected: true,
placeholder: "api-placeholder",
},
"no-auth",
)
.field(
"overrideBaseUrl",
"string",
{
displayName: "Base URL",
subtitle: "Base URL of your OpenAI-compatible server, e.g. http://192.168.1.123:1234/v1. Required.",
placeholder: "http://<host>:<port>/v1",
},
"",
)
.build();
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: "Model ID as recognized by your inference server (sent verbatim).",
placeholder: "publisher/model-name",
},
"",
)
.build();
export const globalConfigSchematics = createConfigSchematics()
.field(
"apiKey",
"string",
{
displayName: "API Key",
subtitle:
"Sent as the Bearer token. If your server has auth disabled, enter any placeholder value (required by the client library).",
isProtected: true,
placeholder: "api-placeholder",
},
"no-auth",
)
.field(
"overrideBaseUrl",
"string",
{
displayName: "Base URL",
subtitle: "Base URL of your OpenAI-compatible server, e.g. http://192.168.1.123:1234/v1. Required.",
placeholder: "http://<host>:<port>/v1",
},
"",
)
.build();