heyeric 1.0.1 → 1.1.0
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/index.js +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,11 +13,9 @@ function die(msg) {
|
|
|
13
13
|
}
|
|
14
14
|
var query = process.argv.slice(2).join(" ").trim();
|
|
15
15
|
if (!query) die("Usage: eric <query>");
|
|
16
|
-
var apiUrl = process.env.AI_API_URL;
|
|
17
|
-
var apiKey = process.env.AI_API_KEY;
|
|
16
|
+
var apiUrl = process.env.AI_API_URL || "https://aiapi.ericpark.me/v1/chat/completions";
|
|
17
|
+
var apiKey = process.env.AI_API_KEY || "ericpark";
|
|
18
18
|
var model = process.env.AI_MODEL || "gpt-5.4-mini";
|
|
19
|
-
if (!apiUrl) die("AI_API_URL environment variable is required");
|
|
20
|
-
if (!apiKey) die("AI_API_KEY environment variable is required");
|
|
21
19
|
var cwd = process.cwd();
|
|
22
20
|
var os = platform();
|
|
23
21
|
var shell = basename(process.env.SHELL || "/bin/bash");
|