src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"numResults",
"numeric",
{
displayName: "URLs to Scrape",
subtitle: "How many top search results to visit and scrape (1–5). Default: 3",
min: 1,
max: 5,
int: true,
slider: {
step: 1,
min: 1,
max: 5,
},
},
3
)
.field(
"maxCharsPerSite",
"numeric",
{
displayName: "Max Chars Per Site",
subtitle: "Maximum extracted characters per scraped page (500–12000). Default: 8000",
min: 500,
max: 12000,
int: true,
},
8000
)
.field(
"safeSearch",
"select",
{
options: [
{ value: "strict", displayName: "Strict" },
{ value: "moderate", displayName: "Moderate" },
{ value: "off", displayName: "Off" },
{ value: "auto", displayName: "Auto" },
],
displayName: "Safe Search",
},
"auto"
)
.build();