shiroai 2.0.3 → 2.0.4
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/cli.js +5 -5
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -16,8 +16,8 @@ const c = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// ===== CONFIG =====
|
|
19
|
-
const API_URL = 'https://
|
|
20
|
-
const MODEL =
|
|
19
|
+
const API_URL = 'https://inference.do-ai.run/v1/chat/completions';
|
|
20
|
+
const MODEL = 'openai-gpt-oss-120b';
|
|
21
21
|
const CWD = process.cwd();
|
|
22
22
|
const CONFIG_DIR = path.join(os.homedir(), '.shiroai');
|
|
23
23
|
const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
|
|
@@ -263,11 +263,11 @@ initMessages();
|
|
|
263
263
|
function streamChat(msgs, tools) {
|
|
264
264
|
return new Promise((resolve, reject) => {
|
|
265
265
|
const payload = {
|
|
266
|
+
model: MODEL,
|
|
266
267
|
messages: msgs,
|
|
267
268
|
stream: true,
|
|
268
269
|
max_tokens: 8192
|
|
269
270
|
};
|
|
270
|
-
if (MODEL) payload.model = MODEL;
|
|
271
271
|
if (tools && tools.length) payload.tools = tools;
|
|
272
272
|
const body = JSON.stringify(payload);
|
|
273
273
|
const url = new URL(API_URL);
|
|
@@ -280,7 +280,7 @@ function streamChat(msgs, tools) {
|
|
|
280
280
|
method: 'POST',
|
|
281
281
|
headers: {
|
|
282
282
|
'Content-Type': 'application/json',
|
|
283
|
-
'Authorization': 'Bearer
|
|
283
|
+
'Authorization': 'Bearer doo_v1_c1723ee6ceca27f7c2ac2dfa896e6f40ec36d88668ca921eccd81591314b4bd2',
|
|
284
284
|
'Content-Length': Buffer.byteLength(body)
|
|
285
285
|
}
|
|
286
286
|
}, res => {
|
|
@@ -479,7 +479,7 @@ function showContext() {
|
|
|
479
479
|
function header() {
|
|
480
480
|
console.log(`\n${c.bold}${c.green} ✦ ShiroAI${c.r} ${c.dim}v2.0.0${c.r}`);
|
|
481
481
|
console.log(`${c.dim} ${CWD}${c.r}`);
|
|
482
|
-
console.log(`${c.dim} Agent: ${currentAgent.name} | Model:
|
|
482
|
+
console.log(`${c.dim} Agent: ${currentAgent.name} | Model: ${MODEL}${c.r}`);
|
|
483
483
|
console.log(`${c.dim} /help for commands${c.r}\n`);
|
|
484
484
|
}
|
|
485
485
|
|