mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
Update ModelService.js (#1105)
Failed to fetch models from OpenAI API when set OPENROUTER_API_KEY on .env file
This commit is contained in:
parent
11dd3b487f
commit
ba5ab86037
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ const fetchOpenAIModels = async (opts = { azure: false, plugins: false }, _model
|
|||
|
||||
if (OPENROUTER_API_KEY) {
|
||||
reverseProxyUrl = 'https://openrouter.ai/api/v1';
|
||||
apiKey = OPENROUTER_API_KEY
|
||||
}
|
||||
|
||||
if (reverseProxyUrl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue