mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-22 00:00:50 +00:00
Large admin-ui refactor (Performative component system, sidebar nav,
provider/route tabs) plus backend module restructuring.
Admin UI contract fixes (this session):
- Fix Models page crash: useBackends unwraps {backends:[...]}; align
ModelEntry to {model_name, deployments} and ModelsResponse.strategy;
fix add-model body to {model_name, actual_model, backend_name}.
- Fix Backends/Providers health rendering: source per-backend status and
latency from the uptime endpoint (health_checks); narrow Backend type to
the real get_backends shape.
- Route + sidebar-link the previously-unrouted Backends tab.
Verified: cargo test (exit 0), clippy -D warnings (exit 0), fmt --check,
admin-ui tsc + vite build all green.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
1.8 KiB
Bash
28 lines
1.8 KiB
Bash
# anyllm-proxy simple config — copy to .anyllm.env and fill in your values.
|
|
# Auto-loaded from the current directory on startup: anyllm_proxy
|
|
# Or point to a custom path: anyllm_proxy --env-file ~/configs/my.env
|
|
|
|
# ── Quick start: local Ollama ─────────────────────────────────────────────────
|
|
# OPENAI_API_KEY=unused
|
|
# OPENAI_BASE_URL=http://localhost:11434/v1
|
|
# BIG_MODEL=qwen2.5-coder:32b
|
|
# SMALL_MODEL=qwen2.5-coder:32b
|
|
|
|
# ── Quick start: OpenAI ───────────────────────────────────────────────────────
|
|
OPENAI_API_KEY=sk-...
|
|
# BIG_MODEL=gpt-4o # default for claude-sonnet / claude-opus requests
|
|
# SMALL_MODEL=gpt-4o-mini # default for claude-haiku requests
|
|
|
|
# ── Auth ──────────────────────────────────────────────────────────────────────
|
|
# Without one of the following, the proxy rejects all requests.
|
|
#
|
|
# PROXY_API_KEYS=sk-key1,sk-key2 # static key list
|
|
# PROXY_OPEN_RELAY=false # true = accept any non-empty key (dev only)
|
|
|
|
# ── Other backends — uncomment the block you need ────────────────────────────
|
|
# See .env.example for the full reference (Azure, Vertex, Gemini, Bedrock, etc.)
|
|
|
|
# ── Logging ───────────────────────────────────────────────────────────────────
|
|
RUST_LOG=info
|
|
# REDACT_SECRETS=false
|