mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
feat: gpt-3.5-turbo-instruct support, refactor: try fetching models if OpenRouter is set (#981)
* refactor: try fetching if OpenRouter api key is set * feat: gpt-3.5-turbo-instruct support * fix: use new assignment in getTokenizer
This commit is contained in:
parent
1a77fb4fd5
commit
d87754c43d
3 changed files with 18 additions and 10 deletions
|
|
@ -88,12 +88,11 @@ const getOpenAIModels = async (opts = { azure: false, plugins: false }) => {
|
|||
return models;
|
||||
}
|
||||
|
||||
if (userProvidedOpenAI) {
|
||||
if (userProvidedOpenAI && !OPENROUTER_API_KEY) {
|
||||
return models;
|
||||
}
|
||||
|
||||
models = await fetchOpenAIModels(opts, models);
|
||||
return models;
|
||||
return await fetchOpenAIModels(opts, models);
|
||||
};
|
||||
|
||||
const getChatGPTBrowserModels = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue