ikie-cli 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/repl.js +2 -2
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const CONFIG_FILE: string;
|
|
|
3
3
|
export declare const GLOBAL_MEMORY_FILE: string;
|
|
4
4
|
export declare const SESSIONS_DIR: string;
|
|
5
5
|
export declare const FIREWORKS_BASE_URL = "https://api.fireworks.ai/inference/v1";
|
|
6
|
-
export declare const DEFAULT_MODEL = "
|
|
6
|
+
export declare const DEFAULT_MODEL = "kimi-k2p7-code";
|
|
7
7
|
/**
|
|
8
8
|
* The hosted ikie API (masks the upstream provider behind ik_live_ keys).
|
|
9
9
|
* Override with IKIE_HOST env var, e.g. for local dev or a custom domain.
|
package/dist/config.js
CHANGED
|
@@ -6,7 +6,7 @@ export const CONFIG_FILE = join(HOME_DIR, 'config.json');
|
|
|
6
6
|
export const GLOBAL_MEMORY_FILE = join(HOME_DIR, 'memory.md');
|
|
7
7
|
export const SESSIONS_DIR = join(HOME_DIR, 'sessions');
|
|
8
8
|
export const FIREWORKS_BASE_URL = 'https://api.fireworks.ai/inference/v1';
|
|
9
|
-
export const DEFAULT_MODEL = '
|
|
9
|
+
export const DEFAULT_MODEL = 'kimi-k2p7-code';
|
|
10
10
|
/**
|
|
11
11
|
* The hosted ikie API (masks the upstream provider behind ik_live_ keys).
|
|
12
12
|
* Override with IKIE_HOST env var, e.g. for local dev or a custom domain.
|
package/dist/repl.js
CHANGED
|
@@ -34,7 +34,6 @@ async function fetchAndDisplayModels(config) {
|
|
|
34
34
|
const defaultLabel = model.is_default ? c.success(' [DEFAULT]') : '';
|
|
35
35
|
const contextInfo = c.muted(`(${(model.context_window / 1024).toFixed(0)}K context)`);
|
|
36
36
|
console.log(` ${c.secondary(model.name.padEnd(24))} ${c.white(model.display_name)}${defaultLabel} ${contextInfo}`);
|
|
37
|
-
console.log(` ${c.dim(model.provider_model_id)}`);
|
|
38
37
|
}
|
|
39
38
|
console.log(`\n${c.muted('To switch models:')}`);
|
|
40
39
|
console.log(` ${c.accent('/model')} ${c.muted('<name>')}`);
|
|
@@ -746,7 +745,8 @@ function selectModelInteractively(rl, config) {
|
|
|
746
745
|
return;
|
|
747
746
|
}
|
|
748
747
|
const chosen = models[num - 1];
|
|
749
|
-
config.model = chosen.
|
|
748
|
+
config.model = chosen.name;
|
|
749
|
+
saveConfig({ model: chosen.name });
|
|
750
750
|
console.log(successLine(`Switched to ${chosen.name} — ${chosen.display_name}`));
|
|
751
751
|
resolve();
|
|
752
752
|
});
|