danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, AWS, OpenAI, Assistants API, Azure, Groq, o1, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
19.15k stars 3.19k forks source link

[Bug]: `librechat.yaml` file cached forever #4076

Closed Lazyshot closed 2 months ago

Lazyshot commented 2 months ago

What happened?

When using redis for caching purposes the librechat.yaml file does not respect file edits, because the contents are loaded into the cache once and never invalidated.

The getCustomConfig code executes on startup and finds the alterations made and even logs out the new file, but when calling the /api/config endpoint no changes are observed.

Steps to Reproduce

  1. Write librechat.yaml file
  2. Enable Redis caching
  3. Alter librechat.yaml file (e.g. model specs)
  4. No Changes found on /api/config

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct