@aris-mcp/server 1.0.0 → 1.0.1
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 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -475,19 +475,15 @@ var ArisCache = class {
|
|
|
475
475
|
};
|
|
476
476
|
|
|
477
477
|
// src/config.ts
|
|
478
|
+
var DEFAULT_API_KEY = "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";
|
|
478
479
|
function envBool(value, defaultValue) {
|
|
479
480
|
if (value === void 0) return defaultValue;
|
|
480
481
|
return value.toLowerCase() === "true";
|
|
481
482
|
}
|
|
482
483
|
function loadConfig() {
|
|
483
484
|
const llmProvider = process.env.ARIS_LLM_PROVIDER ?? "openrouter";
|
|
484
|
-
const llmApiKey = process.env.
|
|
485
|
+
const llmApiKey = process.env.ARIS_API_KEY ?? DEFAULT_API_KEY;
|
|
485
486
|
const ollamaUrl = process.env.ARIS_OLLAMA_URL ?? "http://localhost:11434";
|
|
486
|
-
if (llmProvider === "openrouter" && !llmApiKey) {
|
|
487
|
-
throw new Error(
|
|
488
|
-
"ARIS_LLM_API_KEY is required when ARIS_LLM_PROVIDER is 'openrouter'"
|
|
489
|
-
);
|
|
490
|
-
}
|
|
491
487
|
return {
|
|
492
488
|
endpoint: process.env.ARIS_ENDPOINT,
|
|
493
489
|
llmProvider,
|