embedding.py: - Add EMBEDDING_API_KEY env var (no fallback — explicit per-branch) - OpenRouter branch: uses OPENROUTER_API_KEY + vendor headers - Generic branch: sends Authorization: Bearer <EMBEDDING_API_KEY> if set - Unauth fallback: no header (localhost, no auth needed) - Credential isolation: no cross-branch key leakage .env.example + setup/install.md: - Document EMBEDDING_API_KEY as optional for non-OpenRouter authenticated endpoints (vLLM --api-key, custom hosted services) |
||
|---|---|---|
| .. | ||
| embedding.py | ||
| llm.py | ||
| local_qdrant.py | ||
| sparse_embedding.py | ||