ClaudioDrews
ff781f9824
feat: add EMBEDDING_API_KEY for authenticated non-OpenRouter endpoints (fixes #8)
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)