mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-04-07 08:25:23 +02:00
Replace enum with dynamic getter to enable runtime environment variable lookup. CohereConstants.API_URL now automatically uses COHERE_BASE_URL if set, otherwise defaults to https://api.cohere.ai/v1. This enables using custom Cohere endpoints (like LiteLLM proxy) for web search reranking by simply setting the COHERE_BASE_URL environment variable. Usage: export COHERE_BASE_URL=http://litellm:8000/v1 export COHERE_API_KEY=your_api_key The change is backwards compatible and requires no configuration changes. |
||
|---|---|---|
| .. | ||
| react-query | ||
| specs | ||
| src | ||
| .gitignore | ||
| babel.config.js | ||
| check_updates.sh | ||
| jest.config.js | ||
| package.json | ||
| rollup.config.js | ||
| server-rollup.config.js | ||
| tsconfig.json | ||
| tsconfig.spec.json | ||