Revert "Initialize theme with default value at module load time"

This reverts commit d18e44d378.
This commit is contained in:
Mario Zechner 2026-01-12 17:29:56 +01:00
parent d18e44d378
commit a46c4aab4f
2 changed files with 23 additions and 6 deletions

View file

@ -4359,6 +4359,23 @@ export const MODELS = {
contextWindow: 256000, contextWindow: 256000,
maxTokens: 128000, maxTokens: 128000,
} satisfies Model<"openai-completions">, } satisfies Model<"openai-completions">,
"kwaipilot/kat-coder-pro:free": {
id: "kwaipilot/kat-coder-pro:free",
name: "Kwaipilot: KAT-Coder-Pro V1 (free)",
api: "openai-completions",
provider: "openrouter",
baseUrl: "https://openrouter.ai/api/v1",
reasoning: false,
input: ["text"],
cost: {
input: 0,
output: 0,
cacheRead: 0,
cacheWrite: 0,
},
contextWindow: 256000,
maxTokens: 128000,
} satisfies Model<"openai-completions">,
"meta-llama/llama-3-70b-instruct": { "meta-llama/llama-3-70b-instruct": {
id: "meta-llama/llama-3-70b-instruct", id: "meta-llama/llama-3-70b-instruct",
name: "Meta: Llama 3 70B Instruct", name: "Meta: Llama 3 70B Instruct",
@ -4572,13 +4589,13 @@ export const MODELS = {
reasoning: true, reasoning: true,
input: ["text"], input: ["text"],
cost: { cost: {
input: 0.27, input: 0.28,
output: 1.12, output: 1.2,
cacheRead: 0, cacheRead: 0.14,
cacheWrite: 0, cacheWrite: 0,
}, },
contextWindow: 196608, contextWindow: 196608,
maxTokens: 65536, maxTokens: 4096,
} satisfies Model<"openai-completions">, } satisfies Model<"openai-completions">,
"mistralai/codestral-2508": { "mistralai/codestral-2508": {
id: "mistralai/codestral-2508", id: "mistralai/codestral-2508",

View file

@ -593,8 +593,8 @@ function getDefaultTheme(): string {
// Global Theme Instance // Global Theme Instance
// ============================================================================ // ============================================================================
export let theme: Theme = loadTheme(getDefaultTheme()); export let theme: Theme;
let currentThemeName: string | undefined = getDefaultTheme(); let currentThemeName: string | undefined;
let themeWatcher: fs.FSWatcher | undefined; let themeWatcher: fs.FSWatcher | undefined;
let onThemeChangeCallback: (() => void) | undefined; let onThemeChangeCallback: (() => void) | undefined;