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

Input validation error: inputs must have less than 32000 characters. Given: 67337 #394

Open
ffalkenberg opened this issue Sep 3, 2024 · 0 comments

Comments

@ffalkenberg
Copy link

When using /embed and truncate=true with long inputs, the input is correctly truncated at the token level, but I still get a validation error for inputs longer than 32,000 characters:

{
  "error": "Input validation error: `inputs` must have less than 32000 characters. Given: 67337",
  "error_type": "Validation"
}

It seems like truncate only affects tokenization and not the actual input length. Is the only solution to manually truncate the input on the client side or is there some parameter that I missed?

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

No branches or pull requests

1 participant