Skip to content

Fix duplicated system message (prompt cache) #89

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

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

recallfuture
Copy link
Contributor

A tiny change, fix the system prompt which added to top of messages in every turn, even it's already in messages history.
That break the prompt cache hit, make api call more slow and expensive.

Copy link
Collaborator

@saqadri saqadri left a comment

Choose a reason for hiding this comment

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

@recallfuture thank you for the fix! This is a good catch.

@saqadri saqadri merged commit 5779472 into lastmile-ai:main Mar 31, 2025
4 checks passed
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