Default Assistants Configuration #2437
ev-caseythefirst
started this conversation in
Feature Requests & Suggestions
Replies: 1 comment
-
There are some options that throw an error and won’t let you start the server if the config file is invalid. Maybe I can add this to the list of errors that do so, or make them all throw an error |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
What happened?
This could be a two part-er.
Part 1: librechat.yaml config
While trying to configure the Assistants endpoint, I had removed all the custom endpoints and was focusing on the endpoints:assistants: section in the librechat.yaml file. I was having a heck of a time disabling the assistants builder, even though it was a simple boolean value in the config. Upon inspection of the debug and error logs, I realized that it was complaining about an invalid config file (even though a yaml validator validated it). Turns out the empty custom: tag under the endpoints was throwing an error (invalid type: expecting array) so it wasn't loading the yaml file correctly (there was no ui error, only found in the log files).
The fix was to just remove the empty config: tag and then the yaml file was loading and acting as expected.
Part 2: default assistant configuration
Given that I was trying to disable the builder and restrict access to an individual assistant by id, the fact that the yaml file was error'ing out rather silently meant that ALL assistants on the account were exposed, and the builder was enabled.
I would think that explicitly enabling the builder through a valid config option would be more secure than explicitly disabling it. Furthermore, perhaps making no assistants available upon an invalid config would be more secure functionality?
Steps to Reproduce
Edit librechat.yaml file.
delete everything in endpoints: custom:, leaving the custom tag.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions