You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user prompt is blocked using the AI SDK's Google Generative AI provider with "HARM_CATEGORY_DANGEROUS_CONTENT" (as an example), the onFinishfinishReason = content-filter which allows me to capture the value and move on. However, when a user prompt is filtered using the AI SDK's Azure OpenAI provider where the model endpoint's content filter is triggered, the errors below are encountered.
My expected result is an onFinishfinishReason = content-filter.
Description
When a user prompt is blocked using the AI SDK's Google Generative AI provider with "HARM_CATEGORY_DANGEROUS_CONTENT" (as an example), the
onFinish
finishReason
=content-filter
which allows me to capture the value and move on. However, when a user prompt is filtered using the AI SDK's Azure OpenAI provider where the model endpoint's content filter is triggered, the errors below are encountered.My expected result is an
onFinish
finishReason
=content-filter
.Code example
AI provider
@ai-sdk/azure 1.0.13
Additional context
No response
The text was updated successfully, but these errors were encountered: