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

Prevent duplication of user prompts / chat history in ChatSession. #266

Merged
merged 3 commits into from
Nov 9, 2023

Conversation

philippjbauer
Copy link
Contributor

The way ChatSession.ChatAsync was using the provided methods from a IHistoryTransform interface implementation created unexpected duplication of the chat history messages. It also prevented loading previous history into the current session.

The way ChatSession.ChatAsync was using the provided methods
from a IHistoryTransform interface implementation created unexpected
duplication of the chat history messages. It also prevented loading
previous history into the current session.
LLama/ChatSession.cs Outdated Show resolved Hide resolved
LLama/ChatSession.cs Outdated Show resolved Hide resolved
@martindevans
Copy link
Member

Note: refer to #261 for some initial discussion

@martindevans martindevans self-requested a review November 8, 2023 23:41
Copy link
Member

@martindevans martindevans left a comment

Choose a reason for hiding this comment

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

LGTM!

@AsakusaRinne
Copy link
Collaborator

LGTM, thank you very much for this contribution!

@AsakusaRinne AsakusaRinne merged commit 47e0167 into SciSharp:master Nov 9, 2023
4 checks passed
@philippjbauer
Copy link
Contributor Author

Glad to help out! I hope to find some time to help advance the overall ChatSession class but I've got a pretty packed calendar in the next few weeks.

@AsakusaRinne
Copy link
Collaborator

Glad to help out! I hope to find some time to help advance the overall ChatSession class but I've got a pretty packed calendar in the next few weeks.

No problem, you're always welcome :) If you'd like to take part in the development of LLamaSharp, I'll invite you to the discord dev channel.

Sign up for free to 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.

3 participants