Files
homelab-frontend/internal
Admin Bot d16597ca0b
CI / CI (pull_request) Successful in 3m10s
feat: add upstreamModel config for model name mapping
When the upstream LLM server expects a different model name than what
clients send, the gateway now rewrites the 'model' field in the request
body before forwarding.

Config example:
  models:
  - name: "ornith:35b"           # client-facing name
    address: "ornith-predictor:80"
    upstreamModel: "qwen2.5:72b"  # what upstream expects

Fixes 400 'model is required' errors when upstream model names differ.
2026-09-15 09:52:55 +09:00
..