Skip to content

Conversation

@jxblum
Copy link
Contributor

@jxblum jxblum commented Nov 10, 2025

Closes #4835

As a developer, it would be really helpful to know when the (default) max token count is exceeded, what was the configured max value and what was the token count of the Document by ID that exceeded it.

This sort of diagnostic information should be given in any Exception to avoid having to resort to "debugging" to get it.

jxblum added a commit to jxblum/spring-ai that referenced this pull request Nov 10, 2025
@jxblum jxblum force-pushed the pr/TokenCountBatchingStrategy branch from ea32d13 to dc9955f Compare November 10, 2025 01:02
jxblum added a commit to jxblum/spring-ai that referenced this pull request Nov 10, 2025
@jxblum jxblum force-pushed the pr/TokenCountBatchingStrategy branch 2 times, most recently from 9e339b4 to ca70f54 Compare November 10, 2025 01:30
jxblum added a commit to jxblum/spring-ai that referenced this pull request Nov 10, 2025
jxblum added a commit to jxblum/spring-ai that referenced this pull request Nov 10, 2025
@jxblum jxblum force-pushed the pr/TokenCountBatchingStrategy branch from ca70f54 to 1d52835 Compare November 10, 2025 01:33
@jxblum jxblum force-pushed the pr/TokenCountBatchingStrategy branch from 1d52835 to d80fd64 Compare November 10, 2025 01:36
@ilayaperumalg ilayaperumalg self-assigned this Nov 10, 2025
Copy link
Member

@ilayaperumalg ilayaperumalg left a comment

Choose a reason for hiding this comment

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

@jxblum thanks for the PR for the custom runtime exception when the token count exceeds max.

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.

3 participants