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

Add handling for empty response #808

Merged
merged 5 commits into from
Mar 5, 2025
Merged

Conversation

arthurscchan
Copy link
Collaborator

@arthurscchan arthurscchan commented Feb 20, 2025

In some cases, the llm may fail to generate any response (maybe timeout or connection issues), it will result in None response and that creates an error when it is passed in for regular expression tag parsing. This PR fixes that by ensuring response is not None before passing in to process.

@arthurscchan
Copy link
Collaborator Author

/gcbrun exp -n ascc-pr-808-1 -m vertex_ai_gemini-1-5 -i -b comparison

@arthurscchan arthurscchan marked this pull request as ready for review February 20, 2025 11:01
@arthurscchan
Copy link
Collaborator Author

/gcbrun exp -n ascc-pr-808-2 -m vertex_ai_gemini-1-5 -i -b comparison

Copy link
Collaborator

@DavidKorczynski DavidKorczynski left a comment

Choose a reason for hiding this comment

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

I feel like if there is an error, wouldn't we want to at least log this somewhere or so? Can it lead to confusion just passing over it in this way?

Signed-off-by: Arthur Chan <[email protected]>
Signed-off-by: Arthur Chan <[email protected]>
@arthurscchan arthurscchan force-pushed the fix-empty-response-re-error branch from 88c155d to bd89509 Compare March 4, 2025 08:07
@arthurscchan
Copy link
Collaborator Author

/gcbrun exp -n ascc-pr-808-3 -m vertex_ai_gemini-1-5 -i -b comparison

@DavidKorczynski DavidKorczynski merged commit 9e4b7ce into main Mar 5, 2025
6 checks passed
@DavidKorczynski DavidKorczynski deleted the fix-empty-response-re-error branch March 5, 2025 20:47
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.

2 participants