Fix internal DNS hostname for Hermes container in delegate_to_hermes

This commit is contained in:
Antigravity
2026-05-10 01:02:19 -03:00
parent fc6e911866
commit a84f51bf17

View File

@@ -493,7 +493,7 @@ def delegate_to_hermes(task: str) -> str:
safe_task = shlex.quote(task)
# Tentativa 1: Via API HTTP Interna do Coolify para o novo Hermes
url = "http://qfduyd1pvznx1z53mxbj46ee-hermes:8642/chat"
url = "http://hermes-qfduyd1pvznx1z53mxbj46ee:8642/chat"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer hermes-vps-513d26e0-secure-key"
@@ -509,7 +509,7 @@ def delegate_to_hermes(task: str) -> str:
except Exception as api_err:
# Tentativa 2: Fallback via docker exec no container do Coolify
# Primeiro, pegamos o ID exato do container do hermes no Coolify
get_id_cmd = "docker ps -q -f name=qfduyd1pvznx1z53mxbj46ee-hermes"
get_id_cmd = "docker ps -q -f name=hermes-qfduyd1pvznx1z53mxbj46ee"
container_id = run_bash(get_id_cmd).strip()
if container_id and not "ERRO" in container_id: