intelligence-router/sidecar
root 4ee85972ec fix: convert underscores to hyphens in llama-server flag names, fix n_ctx→ctx-size rename
Two changes to fix 'error: invalid argument: --n-ctx' during model switch:

1. sidecar/app.py: Added _flag_key() converter that normalises
   underscores to hyphens in flag names and handles the n_ctx→ctx-size
   rename. The code now converts e.g. n_gpu_layers → n-gpu-layers,
   top_p → top-p, top_k → top-k, min_p → min-p before passing to
   llama-server CLI.

2. deploy/manifest.yaml: Updated all 20 profiles to use correct
   llama-server flag names: n_ctx→ctx-size, n_gpu_layers→n-gpu-layers,
   top_p→top-p, top_k→top-k, min_p→min-p. All flags now use hyphens,
   matching what llama-server actually accepts.
2026-06-16 20:54:32 +00:00
..
__init__.py Epic: Model Switching via Sidecar — Issues #2-#3 2026-06-15 00:49:24 +00:00
app.py fix: convert underscores to hyphens in llama-server flag names, fix n_ctx→ctx-size rename 2026-06-16 20:54:32 +00:00
manifest.py Epic: Model Switching via Sidecar — Issues #2-#3 2026-06-15 00:49:24 +00:00