Commit 9eef072
committed
feat(embeddings): add OPENAI_BASE_URL support for custom endpoints
Add support for custom OpenAI-compatible API endpoints via OPENAI_BASE_URL
environment variable. This enables using:
- Ollama for local LLM inference
- LiteLLM Proxy for unified model access
- Groq, OpenRouter, and other OpenAI-compatible providers
- Self-hosted models (vLLM, text-generation-inference)
Changes:
- Read OPENAI_BASE_URL from environment in DEFAULT_EMBEDDING_CONFIG
- Update README.md with configuration documentation
- Update CHANGELOG.md with feature entry
Fixes #701 parent b0c2d04 commit 9eef072
3 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| 349 | + | |
349 | 350 | | |
350 | 351 | | |
351 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
0 commit comments