mirror of
https://github.com/whit3rabbit/anyllm-proxy.git
synced 2026-10-02 00:00:07 +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>
2.1 KiB
2.1 KiB
AI21 Labs
AI21 Labs builds the Jamba model family, a hybrid SSM/transformer architecture offering large context windows at lower inference cost than dense transformers.
LiteLLM prefix: ai21/
Status: Stub — routes through OpenAI-compatible client
Docs: https://docs.ai21.com/reference/jamba-15-api-ref
Authentication
| Variable | Required | Description |
|---|---|---|
AI21_API_KEY |
Yes | API key from studio.ai21.com |
Quick Start
Single-Backend (env vars)
BACKEND=ai21 AI21_API_KEY=your-key cargo run -p anyllm_proxy
# Docker:
docker run -e BACKEND=ai21 -e AI21_API_KEY=your-key -e PROXY_OPEN_RELAY=true -p 3000:3000 followthewhit3rabbit/anyllm-proxy
LiteLLM YAML Config
model_list:
- model_name: jamba-1.5-large
litellm_params:
model: ai21/jamba-1.5-large
api_key: "env:AI21_API_KEY"
Usage Examples
Anthropic Messages API
curl http://localhost:3000/v1/messages \
-H "Content-Type: application/json" \
-H "x-api-key: $PROXY_API_KEYS" \
-d '{"model": "jamba-1.5-large", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'
OpenAI Chat Completions API
curl http://localhost:3000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $PROXY_API_KEYS" \
-d '{"model": "jamba-1.5-large", "messages": [{"role": "user", "content": "Hello"}]}'
Capabilities
| Feature | Supported |
|---|---|
| Chat Completions | ✓ |
| Streaming | ✓ |
| Tool Use | — |
| Embeddings | — |
| Vision | — |
| Batch | — |
Notable Models
| Model ID | Context | Notes |
|---|---|---|
jamba-1.5-large |
256k | Flagship; highest quality Jamba model |
jamba-1.5-mini |
256k | Faster, lower cost |
Notes
AI21 exposes an OpenAI-compatible endpoint at https://api.ai21.com/studio/v1. The native AI21 API format is not implemented; this provider uses the OpenAI-compatible path only. Jamba's SSM/transformer hybrid architecture handles long-context prompts more efficiently than standard attention-only models. Tool use is not supported via the OpenAI-compatible endpoint.