danny-avila / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Assistants API, Azure, Groq, GPT-4 Vision, Mistral, Bing, Anthropic, OpenRouter, Vertex AI, Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://librechat.ai/
MIT License
15.28k stars 2.54k forks source link

Bug of chatgptCustom #48

Closed wtlyu closed 1 year ago

wtlyu commented 1 year ago

bug 1: When save and submit a new chatgptCustom, there is nothing added to the model menu, unless refresh

bug2: when have multiple chatgptCustom, deleted one of them, it looks like another one is deleted. (but after refresh, everything got correct)

BTW, what's the differencee between save and submit? I got confused.

danny-avila commented 1 year ago

Save is to save the model to the menu, submit would selects the customGPT, whether it's saved or not, allowing use for a one-off. I can call it select to make more sense.

Also i'm working on this now. I've got the first issue fixed, but I can't reproduce the 2nd. deleting works as expected for me (maybe the fix i applied to the first fixes both?)

wtlyu commented 1 year ago

really? is it designed to have only one customGPT? or it maybe a side effect of bug1

danny-avila commented 1 year ago

No I was mistaken, it was a simple oversight with React losing track of the models due to improper keys. They are now tied to their db keys so it shouldn’t happen anymore