Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/utils/modelSelector.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as fs from 'fs';
import * as path from 'path';
import { select, input, confirm } from '@inquirer/prompts';
import JSON5 from 'json5';

// ANSI color codes
const RESET = "\x1B[0m";
Expand Down Expand Up @@ -80,7 +81,7 @@ function getConfigPath(): string {

function loadConfig(): Config {
const configPath = getConfigPath();
return JSON.parse(fs.readFileSync(configPath, 'utf-8'));
return JSON5.parse(fs.readFileSync(configPath, 'utf-8'));
}

function saveConfig(config: Config): void {
Expand Down