Skip to content

fix(ChattyLLM): Fix disappearing messages - #234

Merged
marcelklehr merged 1 commit into
mainfrom
fix/disappearing-chat-messages
May 6, 2025
Merged

fix(ChattyLLM): Fix disappearing messages#234
marcelklehr merged 1 commit into
mainfrom
fix/disappearing-chat-messages

Conversation

@marcelklehr

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
marcelklehrforce-pushed the fix/disappearing-chat-messages branch from d415bc1 to d3eb838CompareMay 6, 2025 11:53
$message->setRole($role);
$message->setContent($content);
$message->setTimestamp($timestamp);
$message->setSources('[]');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be automatically be populated by the default value, no?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to test. I'm not sure why that doesn't work.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the message gets returned without refetching it from the db. In the db the default is applied, but not in the message object

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah alright that makes sense. Nice one.

@marcelklehr
marcelklehr merged commit eaad41b into mainMay 6, 2025
@marcelklehr
marcelklehr deleted the fix/disappearing-chat-messages branch May 6, 2025 12:54
@julien-ncjulien-nc mentioned this pull request Jun 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@marcelklehr@julien-nc@kyteinsky@janepie