Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Previous conversations missing custom icons and model spec on v0.7.5 #4749

Open
1 task done
bstanic opened this issue Nov 18, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@bstanic
Copy link

bstanic commented Nov 18, 2024

What happened?

We use custom icons for various models. Since the upgrade to version 0.7.5, the saved chats are missing custom model icons after the chat is saved. Also, the model spec is not saved either so when continuing conversation it shows as "None selected".

I suspected that some of the data is not recorded in the DB. So I ran a test with 0.7.4 and then with 0.7.5 and noticed that there is missing data in the 'conversations' collection. Some of the missing fields are spec: and iconURL: but there is more.

Example using version 0.7.4:

{
	"_id" : ObjectId("673aedf38452abac33969696"),
	"conversationId" : "52cac484-1321-4576-8e7a-5bae4ecfddd3",
	"user" : "671ef534b28a596957f7bf3f",
	"__v" : 0,
	"chatGptLabel" : "ChatGPT-4o",
	"createdAt" : ISODate("2024-11-18T07:34:11.980Z"),
	"endpoint" : "azureOpenAI",
	"frequency_penalty" : 0,
	"iconURL" : "https://example-site.net/assets/icon-gpt.png",
	"imageDetail" : "auto",
	"isArchived" : false,
	"messages" : [
		ObjectId("673aedf38452abac33969695"),
		ObjectId("673aedf48452abac33969697"),
		ObjectId("673aee3c8452abac33969698"),
		ObjectId("673aee3d8452abac33969699")
	],
	"model" : "gpt-4o",
	"presence_penalty" : 0,
	"promptPrefix" : null,
	"resendFiles" : true,
	"spec" : "gpt-4o",
	"tags" : [ ],
	"temperature" : 1,
	"title" : "New Chat",
	"top_p" : 1,
	"updatedAt" : ISODate("2024-11-18T07:35:25.745Z")
}

Example (broken icons and empty model selections) on 0.7.5:

{
	"_id" : ObjectId("673aef3caac9e3027061653f"),
	"user" : "671ef534b28a596957f7bf3f",
	"conversationId" : "dc3cb9b5-de11-44d3-a063-7b0930f0d953",
	"__v" : 0,
	"createdAt" : ISODate("2024-11-18T07:39:40.120Z"),
	"endpoint" : "azureOpenAI",
	"isArchived" : false,
	"messages" : [
		ObjectId("673aef3caac9e3027061653e"),
		ObjectId("673aef3eaac9e30270616540")
	],
	"model" : "gpt-4o",
	"resendFiles" : true,
	"tags" : [ ],
	"title" : "Test of the Test",
	"updatedAt" : ISODate("2024-11-18T07:39:42.273Z")
}

Issue seems to be with recording all the fields in the DB in the version 0.7.5

Steps to Reproduce

  1. Run version 0.7.4 with customization file as per the LibreChat documentation
  2. Do some test chats
  3. Upgrade to version 0.7.5
  4. Do some more test chats.
  5. Observe that old chats still have correct icons and model spec in history, but the new one created post upgrade do not.

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bstanic bstanic added the bug Something isn't working label Nov 18, 2024
@bstanic
Copy link
Author

bstanic commented Nov 19, 2024

After some further testing and playing with options, it seems that the issue is present if the model spec enforcement is set to true. When set to false, the issue is no longer present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant