spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Provide detailed Exception message when token count exceeds max

Open jxblum opened this issue 1 week ago • 0 comments
trafficstars

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 avatar Nov 10 '25 00:11 jxblum