CodeBench: oletus-URL 127.0.0.1 localhostin sijaan (Node 18 IPv6-ongelma)
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user