File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,8 +61,8 @@ def _resolve_data_asset(filename: str) -> Path:
6161EMBEDDER_NAME = os .getenv ("EMBEDDER" , "BAAI/bge-m3" ) # upgraded from bge-small-zh-v1.5
6262faiss_status_reason = None
6363faiss_manifest = None
64- # Canonical external AI gateway for this project: Worker custom domain -> service `apis` / production .
65- AI_SERVICE_URL = os .getenv ("AI_SERVICE_URL" , "https://ai .bdfz.net /" )
64+ # Frontend should stay on ai.bdfz.net, but the current VPS reaches the same Worker more reliably via workers.dev .
65+ AI_SERVICE_URL = os .getenv ("AI_SERVICE_URL" , "https://apis .bdfz.workers.dev /" )
6666AI_SERVICE_LABEL = os .getenv ("AI_SERVICE_LABEL" , "Gemini" )
6767AI_SERVICE_TIMEOUT = float (os .getenv ("AI_SERVICE_TIMEOUT_SEC" , "25" ))
6868AI_SERVICE_MODEL = os .getenv ("AI_SERVICE_MODEL" , "gemini-flash-latest" ).strip () or "gemini-flash-latest"
You can’t perform that action at this time.
0 commit comments