optz: Goal orchestrator

This commit is contained in:
thanhnv
2026-07-11 12:18:59 +09:00
parent b56f7d357e
commit 4fc72332f5
34 changed files with 850 additions and 452 deletions
@@ -322,7 +322,7 @@ def runtime_env(provider_id: str, model_id: str) -> int:
parsed = urlparse(endpoint)
env.update({
"CASAN_OLLAMA_HOST": parsed.netloc,
"OLLAMA_HOST": parsed.netloc,
"OLLAMA_HOST": endpoint,
"CASAN_ALLOW_DOCKER_HOST_OLLAMA": "1" if parsed.hostname == "host.docker.internal" else "0",
})
print(json.dumps({"success": True, "env": env}, ensure_ascii=False))