[Bug]: maxContextTokens in Agents is not correctly set when the model != deploymentName #4700
Open
1 task done
Labels
bug
Something isn't working
What happened?
in our case the model configuration in the librechat.yaml file is using the the deploymentName parameter. The model name (e.g. gpt-4o) is not equal the deploymentName. With this when commuicating with an Agent the maxContextTokens is not defined and results in an error.
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
I'm new to js - but this change e.g. fixes the issue - but I'm actually not sure if it is the right thing to do...
Code of Conduct
The text was updated successfully, but these errors were encountered: