src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"searxngUrl",
"string",
{
displayName: "SearXNG URL",
subtitle: "Base URL of your SearXNG instance",
hint: "The URL where SearXNG is running, e.g. http://192.168.0.66:8888",
},
"http://192.168.0.66:8888",
)
.field(
"language",
"string",
{
displayName: "Search Language",
subtitle: "Language code for search results",
hint: "e.g. ru for Russian, en for English, all for no filter",
},
"ru",
)
.field(
"maxResults",
"numeric",
{
displayName: "Max Results",
subtitle: "Maximum number of results to return",
hint: "Number of search results to fetch",
int: true,
min: 1,
max: 20,
slider: { min: 1, max: 20, step: 1 },
},
5,
)
.build();