Skip to content

fix: Throw NonTransientAiException on syntax errors in prompt templates #3614

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pkubowicz
Copy link
Contributor

IAE/ISE are too generic, it's hard to use libraries that throw them.

Using NonTransientAiException clearly marks the exception as coming from Spring AI, plus will integrate nicely with code that already avoids re-sending requests when faced with this exception.

@pkubowicz pkubowicz force-pushed the template-exceptions branch 2 times, most recently from 3d9cd18 to 034e182 Compare June 19, 2025 17:12
IAE/ISE are too generic, it's hard to use libraries that throw them.

Using NonTransientAiException clearly marks the exception as coming
from Spring AI, plus will integrate nicely with code that already
avoids re-sending requests when faced with this exception.

Signed-off-by: Piotr Kubowicz <[email protected]>
@pkubowicz pkubowicz force-pushed the template-exceptions branch from 034e182 to 3b4fac7 Compare June 19, 2025 17:38
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.

1 participant