Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.91k stars 912 forks source link

0.5.1 - Field "author" either does not exist or is not a relational field on the Conversation Model. #142

Closed jimmarshall87 closed 1 year ago

jimmarshall87 commented 1 year ago
    mappings = RELATIONAL_FIELD_MAPPINGS[name]
prisma.errors.UnknownRelationalFieldError: Field: "author" either does not exist or is not a relational field on the Conversation model

Getting the above with 0.5.1 when selecting the message history tab. Tried deleting the chat.db to no avail. The following settings are set in the config.toml:

public = true
database = "local"
willydouhard commented 1 year ago

Yep, just posted the discord announcement with the following warning:

⚠️ If you are using the local persistence mode and already have a chat.db, run chainlit migrate after updating Chainlit.

You are too quick for me ahah

jimmarshall87 commented 1 year ago

ha ha, I was too excited! Nice one!