c29e24b51b
Per-model api_base/api_key overrides in the template (default stays Meridian's local port). All standard aliases (claude-*, gpt-*) now point at Anvil's Ollama (mini/haiku-class -> llama3.1:8b, rest -> llama3.3:70b). Claude/Max reachable only via new *-max escape-hatch aliases. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
24 lines
853 B
Django/Jinja
24 lines
853 B
Django/Jinja
# {{ ansible_managed }}
|
|
#
|
|
# LiteLLM proxy config. Routes OpenAI-shaped requests to backends:
|
|
# - Claude models → Meridian's /v1/messages (same host, :3456), which
|
|
# ignores the upstream API key (placeholder passed below).
|
|
# - Local models → Anvil's Ollama (openai/ provider, OpenAI-compatible
|
|
# endpoint at http://192.168.1.150:11434). Set per-model api_base in vars.
|
|
|
|
model_list:
|
|
{% for m in litellm_models %}
|
|
- model_name: {{ m.name }}
|
|
litellm_params:
|
|
model: {{ m.backend }}
|
|
api_base: {{ m.api_base | default('http://127.0.0.1:' ~ meridian_port) }}
|
|
api_key: {{ m.api_key | default('placeholder-meridian-ignores-this') }}
|
|
{% endfor %}
|
|
|
|
general_settings:
|
|
master_key: os.environ/LITELLM_MASTER_KEY
|
|
|
|
litellm_settings:
|
|
drop_params: true # tolerate clients sending unsupported params
|
|
set_verbose: false
|