mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-25 08:56:10 +00:00
* fix: skip OpenAI model fetch if using user-provided key There was a check present (via `opts.userProvidedOpenAI`), but it wasn't working because `loadDefaultModels()` doesn't provide that parameter. As a result, the server would repeatedly try to request models from OpenAI and get 401 errors in return. We now check the env var directly, which matches how `getAnthropicModels()` works. * chore: remove unused OpenAI model option * fix: honor explicit OpenAI key for model fetch * fix: fall back from empty OpenAI option key --------- Co-authored-by: Dan Lew <daniel@mightyacorn.com> |
||
|---|---|---|
| .. | ||
| anthropic | ||
| bedrock | ||
| config | ||
| custom | ||
| openai | ||
| index.ts | ||
| models.spec.ts | ||
| models.ts | ||