Skip to content

Retry settings not respected when guardrail fails #1205

@AgileEduLabs

Description

@AgileEduLabs

What Happened?

If the guardrail checks as defined in the config fails (using output_guardrails, with deny set to true), then the portkey.chat.completions.create request immediately errors with a status of 446. This happens even if the retry configuration object is set.

This behaviour is the same whether I use the hosted Developer plan or the open source gateway.

What Should Have Happened?

The expectation is that if the guardrail fails, the completion request will try again until the guardrail passes or the number of maximum attempts have been reached.

Relevant Code Snippet

No response

Your Twitter/LinkedIn

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions