PLUGIN

Report

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.",
      placeholder: "claude-4",
    },
    "claude-4",
  )
  .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",
  )
  .build();