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

Adding amazon-bedrock-guardrailConfig for Guardrails to support different streaming types #52

Open
supreetkt opened this issue May 21, 2024 · 0 comments · May be fixed by #59
Open

Adding amazon-bedrock-guardrailConfig for Guardrails to support different streaming types #52

supreetkt opened this issue May 21, 2024 · 0 comments · May be fixed by #59
Labels

Comments

@supreetkt
Copy link

Guardrails supports Asynchronous and Synchronous streaming that determine how guardrails are applied to the model response. This feature is currently not supported by the Bedrock classes. Feature is highlighted here in the Bedrock documentation and requires amazon-bedrock-guardrailConfig to be passed in the API call while using streaming and using InvokeModelWithResponseStream.

boto3 supports this in the invoke_model_with_response_stream method as a part of the body.

@3coins 3coins added the bedrock label May 23, 2024
@supreetkt supreetkt linked a pull request May 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants