You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the regex from const regex = /(text-davinci-003|gpt-)/; to const regex = /(text-davinci-003|gpt-|o1-)/; retrieval from API works and o1... models are shown in the drop-down for OpenAI.
Steps to Reproduce
see above in "what happened"
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
After noticing PR #4019 I found it is currently necessary to specify o1-... models manually in
.env
(OPENAI_MODELS=gpt-4o,o1-preview-2024-09-12,o1-preview,...
), even though those are recognized and registered in https://github.com/danny-avila/LibreChat/blob/main/api/models/tx.js#L42 and https://github.com/danny-avila/LibreChat/blob/main/packages/data-provider/src/config.ts#L12The issue appears to be that in https://github.com/danny-avila/LibreChat/blob/main/api/server/services/ModelService.js#L159 the regex filters out models with name starting
o1...
and hence they are not by default included in the browser UI drop-down.After changing the regex from
const regex = /(text-davinci-003|gpt-)/;
toconst regex = /(text-davinci-003|gpt-|o1-)/;
retrieval from API works ando1...
models are shown in the drop-down for OpenAI.Steps to Reproduce
see above in "what happened"
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: