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

Add Error Checking for Prompt Length vs. Max Length #1192

Merged
merged 9 commits into from
Jan 22, 2025

Conversation

aciddelgado
Copy link
Contributor

This adds an error check for when the prompt length + current sequence length exceeds the user-defined max length.

natke
natke previously requested changes Jan 16, 2025
Copy link
Contributor

@natke natke left a comment

Choose a reason for hiding this comment

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

Please add tests that would have failed if this check wasn't present

@aciddelgado aciddelgado force-pushed the aciddelgado/max_length branch from 372005e to 2f58d58 Compare January 16, 2025 19:27
@natke natke dismissed their stale review January 22, 2025 18:34

Tests were added

@aciddelgado aciddelgado merged commit 48bbe9a into main Jan 22, 2025
10 of 14 checks passed
@aciddelgado aciddelgado deleted the aciddelgado/max_length branch January 22, 2025 19:16
baijumeswani pushed a commit that referenced this pull request Jan 31, 2025
This adds an error check for when the prompt length + current sequence
length exceeds the user-defined max length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants