Cannot read properties of undefined (reading 'match') on custom endpoints #8380
Unanswered
mitread
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm starting with LibreChat and it's really slick. Running into some problems:
I'm having issues hitting custom endpoints configured in LibreChat, I'm specifically getting the error in chat:
"Something went wrong. Here's the specific error message we encountered: An error occurred while processing the request: Cannot read properties of undefined (reading 'match')"
Running from source I find it's erroring out in
api/server/controllers/agents/client.js:741
I found that it works just fine when hitting a ollama configured endpoint, but any custom endpoints throw an error. Logging the agent object shows two differently formatted objects:
ollama
custom endpoint
Obviously the model is missing from the model_parameters portion. I modified the code to skip the regex match, but then got other errors when making the request to the endpoint:
400 status code (no body)
. I can confirm I can hit the custom endpoint using a python script and the OpenAI package.Here's my librechat.yaml file:
Am I mis-configuring something?
Steps to reproduce:
Relevant log output from docker:
Docker version:
Source version:
f4d97e16725a9e80cf4b7b47b4604a0f26901fee
Any pointers would be appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions