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

Handle empty responses from VertexAI properly #36

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

megatron6000
Copy link
Collaborator

Feature Description

Due to a bug in langchain, the response is empty if the request was blocked because of a prompt being unsafe. We catch it here and raise a proper exception

Fixed

  • Raise exception if an empty response was returned from VertexAI

… blocked because of a prompt being unsafe. We catch it here and raise a proper exception
@megatron6000 megatron6000 merged commit 8f43d92 into main Aug 30, 2024
4 checks passed
@megatron6000 megatron6000 deleted the unsafe-prompt-handling branch August 30, 2024 08:41
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