// Sole managed `gpt` provider registration.
const models = ["medium", "high", "xhigh", "pro"].map((effort) => ({
  id: `sol-web-${effort}`, name: `ChatGPT Sol Web ${effort}`,
  reasoning: false, input: ["text"],
  cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
  contextWindow: 120000, maxTokens: 16000,
}));
export default function register(pi: any) {
  pi.registerProvider("gpt", {
    baseUrl: "http://127.0.0.1:8791/v1", api: "openai-completions",
    apiKey: "!solwebctl token", authHeader: true,
    headers: { "X-Overdeck-Client-Session": "$OVERDECK_PI_CLIENT_SESSION" }, models,
  });
}
