CodeBench: oletus-URL 127.0.0.1 localhostin sijaan (Node 18 IPv6-ongelma)

This commit is contained in:
2026-04-14 11:08:21 +03:00
parent e2a16b8ff6
commit 0f3310996e

View File

@@ -25,7 +25,7 @@ function arg(name, fallback) {
const i = args.indexOf(`--${name}`); const i = args.indexOf(`--${name}`);
return i >= 0 && args[i + 1] ? args[i + 1] : fallback; return i >= 0 && args[i + 1] ? args[i + 1] : fallback;
} }
const OLLAMA_URL = arg('ollama', process.env.OLLAMA_URL || 'http://localhost:11434'); const OLLAMA_URL = arg('ollama', process.env.OLLAMA_URL || 'http://127.0.0.1:11434');
const HUB_URL = arg('hub', ''); const HUB_URL = arg('hub', '');
const FILTER_MODELS = arg('models', ''); const FILTER_MODELS = arg('models', '');
const SCENARIO_FILTER = arg('scenarios', 'default'); const SCENARIO_FILTER = arg('scenarios', 'default');