mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
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:
committed by
GitHub
co-authored by
Hanzo Dev
parent
bd0307b62b
commit
ecd7412ac9
@@ -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"
|
||||
|
||||
@@ -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"),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user