- Added api_key field to LocalEmbeddingService for authentication
- Added embedding-key config parameter support in bootstrap
- Smart URL handling: doesn't append /embedding for full URLs (HuggingFace, OpenAI, etc.)
- Detects HuggingFace URLs and uses correct request format (inputs instead of input/model)
- Handles multiple response formats:
- HuggingFace: direct array [0.1, 0.2, ...]
- Standard/OpenAI: {"data": [{"embedding": [...]}]}
- Added Authorization header with Bearer token when api_key is provided
- Improved error messages with full response details
Fixes embedding errors when using HuggingFace Inference API
|
||
|---|---|---|
| .. | ||
| context | ||
| llm_models | ||
| prompt_manager | ||
| cache.rs | ||
| cache_test.rs | ||
| claude.rs | ||
| episodic_memory.rs | ||
| glm.rs | ||
| local.rs | ||
| mod.rs | ||
| observability.rs | ||
| rate_limiter.rs | ||
| smart_router.rs | ||