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

Fix system prompt doubling on retry #62

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

srcrip
Copy link

@srcrip srcrip commented Jun 12, 2024

I'm unsure if this is affecting anyone else, but for me, I get doubling of the system prompt on retries. This prevents it by checking if it's already in the messages context before trying to add it.

@thmsmlr
Copy link
Owner

thmsmlr commented Jun 24, 2024

Ah yea, a side effect of that recursive call. Good catch

@thmsmlr
Copy link
Owner

thmsmlr commented Jun 24, 2024

Can you make it a more precise check to ensure that it only checks the first value in the messages list and add some tests for this?

Copy link
Owner

@thmsmlr thmsmlr left a comment

Choose a reason for hiding this comment

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

Check comments

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.

2 participants