Adds `anthropic_api` model type so users can authenticate with a direct
Anthropic API key instead of (or alongside) the CLI OAuth session.
- model_registry.py: `anthropic_api` type; `save/get/remove_anthropic_api_key()`
mirroring the Google account pattern; `save_cloud_model()` now picks type
based on credential type (cli → claude_cli, api_key → anthropic_api);
`_resolve_model()` merges api_key from the credential entry
- llm_client.py: `_anthropic_api()` backend (AsyncAnthropic SDK); dispatch
and fallback wiring; usage tracking
- routers/local_llm.py: Anthropic API key management routes
(POST /settings/local/anthropic-key, /anthropic-key/{id}/remove);
`anthropic_api` badge and edit-form credential selector
- static/local_llm.html: Anthropic Cloud Provider block now shows API key
management (add/remove); Add Model → Anthropic tab has credential selector
(CLI vs API key)
- requirements.txt: enable anthropic>=0.40.0
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
978 B
Plaintext
36 lines
978 B
Plaintext
fastapi>=0.115.0
|
|
apscheduler>=3.10
|
|
uvicorn[standard]>=0.30.0
|
|
pydantic-settings>=2.0.0
|
|
python-dotenv>=1.0.0
|
|
|
|
# Orchestrator — Gemini API (native tool calling) + web search
|
|
google-genai>=1.0.0
|
|
ddgs>=0.1.0
|
|
|
|
# Google Chat webhook — JWT Bearer token verification
|
|
google-auth>=2.0.0
|
|
|
|
# Session auth — password hashing + JWT cookies
|
|
bcrypt>=4.0.0
|
|
PyJWT>=2.8.0
|
|
python-multipart>=0.0.9 # required by FastAPI for Form() data
|
|
|
|
# Async HTTP client — used for local OpenAI-compatible backend (Open WebUI / Ollama)
|
|
httpx>=0.27.0
|
|
|
|
# Web content extraction — strips ads/nav/boilerplate, returns clean article text
|
|
trafilatura>=1.6.0
|
|
|
|
# OpenAI-compatible client — tool calling for OpenRouter / LiteLLM / any OAI-compat host
|
|
openai>=1.0.0
|
|
|
|
# Web Push / VAPID — browser push notifications
|
|
pywebpush>=2.0.0
|
|
|
|
# MariaDB / MySQL connector — used by ae_db_query orchestrator tool
|
|
pymysql>=1.1.0
|
|
|
|
# Anthropic SDK — direct API key backend (alternative to CLI OAuth)
|
|
anthropic>=0.40.0
|