mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-09-22 16:00:51 +00:00
Adds bedrock_native.rs (Converse/InvokeModel with SigV4) and generic_passthrough.rs catch-all for Translate mode. Adds comprehensive provider reference docs (docs/providers/, docs/ENDPOINTS.md). Fixes managed backend admin UI (BackendForm, ManagedBackendsSection) and admin route/model handler issues. Adds automated model pricing update workflow (scripts/update_pricing.py, .github/workflows/update-pricing.yml). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Infinity
Self-hosted embedding server with OpenAI-compatible API, supporting a wide range of sentence-transformer models.
LiteLLM prefix: infinity/
Status: Stub — routes through OpenAI-compatible client
Docs: https://michaelfeil.eu/infinity/latest/
Authentication
| Variable | Required | Description |
|---|---|---|
| (none) | — | No authentication required |
Quick Start
Single-Backend (env vars)
BACKEND=infinity PROXY_OPEN_RELAY=true cargo run -p anyllm_proxy
# Docker:
docker run -e BACKEND=infinity -e PROXY_OPEN_RELAY=true -p 3000:3000 followthewhit3rabbit/anyllm-proxy
Override the default endpoint with OPENAI_BASE_URL if Infinity is not on localhost.
LiteLLM YAML Config
model_list:
- model_name: bge-small-en
litellm_params:
model: infinity/BAAI/bge-small-en-v1.5
api_base: "http://localhost:7997"
Usage Examples
Embeddings (POST /v1/embeddings)
curl http://localhost:3000/v1/embeddings \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $PROXY_API_KEYS" \
-d '{"model": "BAAI/bge-small-en-v1.5", "input": ["Hello world"]}'
Capabilities
| Feature | Supported |
|---|---|
| Chat Completions | — |
| Streaming | — |
| Tool Use | — |
| Embeddings | ✓ |
| Vision | — |
| Batch | — |
Notes
Infinity is an embeddings-only server. Start it before running the proxy:
pip install infinity-emb[all]
infinity_emb v2 --model-id BAAI/bge-small-en-v1.5
The server listens on port 7997 by default. Pass any Hugging Face model ID compatible with sentence-transformers. Multiple models can be loaded simultaneously; pass --model-id multiple times.