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(firestore-palm-chatbot): truncate history if big payload #178

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

cabljac
Copy link
Collaborator

@cabljac cabljac commented Aug 29, 2023

This PR fixes #170

If a single message is too long (or context, or examples) then it will still throw but with a useful message.
Otherwise history is truncated to fit the maximum context window.

@cabljac cabljac merged commit 9d599b8 into next Aug 31, 2023
@cabljac cabljac deleted the @invertase/limit-palm-request-size branch August 31, 2023 07:50
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.

[Chatbot with PaLM API] Errors happen after ~25 documents in the collection
2 participants