Point cloud clients at canonical api.hanzo.ai front door (#42)

The cloud API now sits behind one front door (ingress -> gateway -> cloud).
api.cloud.hanzo.ai / cloud-api.hanzo.ai / functions.hanzo.ai are redundant
aliases routing to the same backend, so migrate clients to api.hanzo.ai.

- hanzo-tools-ui: HANZO_CLOUD_API default cloud-api.hanzo.ai -> api.hanzo.ai
  (docs RAG paths /api/search-docs|chat-docs|index-docs are served at /api on
  the cloud backend per AUTH_PUBLIC_PATHS; kept as-is)
- hanzo base status: Functions remote host functions.hanzo.ai ->
  api.hanzo.ai/v1/functions (the canonical gateway path)

Non-breaking: the aliases still resolve to the same backend.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-06-30 16:49:00 -07:00
committed by GitHub
co-authored by Hanzo Dev
parent 0ea7627203
commit f2ca58ca6c
2 changed files with 3 additions and 3 deletions
@@ -16,8 +16,8 @@ import httpx
logger = logging.getLogger(__name__)
# Hanzo Cloud search endpoints
CLOUD_API = os.environ.get("HANZO_CLOUD_API", "https://cloud-api.hanzo.ai")
# Hanzo Cloud search endpoints (canonical front door: api.hanzo.ai)
CLOUD_API = os.environ.get("HANZO_CLOUD_API", "https://api.hanzo.ai")
SEARCH_ENDPOINT = f"{CLOUD_API}/api/search-docs"
CHAT_ENDPOINT = f"{CLOUD_API}/api/chat-docs"
INDEX_ENDPOINT = f"{CLOUD_API}/api/index-docs"
+1 -1
View File
@@ -525,7 +525,7 @@ def status():
("Auth", "localhost:54321", "auth.hanzo.ai"),
("Storage", "localhost:54324", "storage.hanzo.ai"),
("Realtime", "localhost:54325", "realtime.hanzo.ai"),
("Functions", "localhost:54326", "functions.hanzo.ai"),
("Functions", "localhost:54326", "api.hanzo.ai/v1/functions"),
("Studio", "localhost:54323", "studio.hanzo.ai"),
]