spring-ai
spring-ai copied to clipboard
Provide detailed Exception message when token count exceeds max
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.