feat: rename CF_ORCH_URL to GPU_SERVER_URL for self-hoster clarity #14
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/gpu-server-url-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Closes #10 (and #9, closed as a duplicate). Follows the
GPU_SERVER_URLconvention already established in Kiwi'sapp/core/config.py.app/config.pyresolvesGPU_SERVER_URL→CF_ORCH_URL(back-compat alias) →https://orch.circuitforge.techdefault whenCF_LICENSE_KEYis present (Paid+ tiers), written back toos.environ["CF_ORCH_URL"]so existing callers need zero changes..env.example/.env.cloud.exampledocumentGPU_SERVER_URLas primary,CF_ORCH_URLnoted as still-honoured legacy alias.compose.cloud.yml's hardcoded coordinator URL now setsGPU_SERVER_URL.docs/reference/environment-variables.mdupdated.Test plan
pytest tests/ -q— 63 passed (6 new tests covering the priority chain + write-back behavior)When CF_ORCH_URL is set, chat now calls CFOrchClient.task_allocate("pagepiper", "rag_query") instead of routing through LLMRouter with an explicit model. The coordinator resolves the assignment (granite-4.1-8b via assignments.yaml) and returns an allocated URL; pagepiper wraps it in a minimal LLMRouter config for the Synthesizer. Falls back to LLMRouter on TaskNotFound or allocation failure, so standalone Ollama installs are unaffected. Extracts _run_chat() and _build_llm_for_alloc() helpers to keep the endpoint body readable regardless of which path fires.