fix: resolve port conflict between sidecar and llama-server
Sidecar and llama-server were both configured on port 8080, causing llama-server to fail on startup (port already in use). - sidecar/app.py: LLAMA_SERVER_PORT → 8081 (sidecar stays on 8080) - docker-compose.yml: MAIN_PC_URL → port 8081 (router sends chat requests to llama-server, not the sidecar)
This commit is contained in:
parent
2c23faa4a1
commit
7e86a30bd8
@ -8,7 +8,7 @@ services:
|
|||||||
- "9001:9000"
|
- "9001:9000"
|
||||||
environment:
|
environment:
|
||||||
- SIDECAR_URL=http://10.0.4.11:8080
|
- SIDECAR_URL=http://10.0.4.11:8080
|
||||||
- MAIN_PC_URL=http://10.0.4.11:8080/v1
|
- MAIN_PC_URL=http://10.0.4.11:8081/v1
|
||||||
- FALLBACK_SLM_URL=http://10.0.4.200:8080/v1
|
- FALLBACK_SLM_URL=http://10.0.4.200:8080/v1
|
||||||
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@ -18,7 +18,7 @@ from sidecar.manifest import load_manifest
|
|||||||
# Configuration from environment
|
# Configuration from environment
|
||||||
MANIFEST_PATH = os.getenv("MANIFEST_PATH", "/home/bigt/AI/llm/manifest.yaml")
|
MANIFEST_PATH = os.getenv("MANIFEST_PATH", "/home/bigt/AI/llm/manifest.yaml")
|
||||||
SIDECAR_PORT = int(os.getenv("SIDECAR_PORT", "8080"))
|
SIDECAR_PORT = int(os.getenv("SIDECAR_PORT", "8080"))
|
||||||
LLAMA_SERVER_PORT = 8080
|
LLAMA_SERVER_PORT = 8081
|
||||||
|
|
||||||
# Global state
|
# Global state
|
||||||
_llama_server_process: Optional[asyncio.subprocess.Process] = None
|
_llama_server_process: Optional[asyncio.subprocess.Process] = None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user