Welcome to Portkey Forum

Updated 2 days ago

Panges guardrails

Hello! I'm trying to test the Pangea AI Guard Guardrails but I'm seeing the button disabled, how should I do to enable it? I've already set token and domain in Plugins section.
V
A
17 comments
Hi @Andrés ! Partner guardrails are currently only available on the Portkey Pro plan
We’ll enable it for your pangea account
Thanks a lot!
Hi @Vrushank | Portkey should it be enabled now? Because I'm still seeing it disabled. Should I do something else?
Attachment
image.png
I've already signed out and signed in again to see if that helps but it didn't
Will let you know shortly
Hi @Andrés this is enabled now
Thanks! I see it now.
Hello again! I see it is enabled, but I’d like to ask about my Pro plan. I was told that my account was paid for to have it, but I don’t see it enabled yet. Do I need to do something specific to activate it?
@Vrushank | Portkey ⬆️ ⬆️ ⬆️
@Andrés just confirmed with the team. For audit reasons, we've gone ahead and made hte partner guardrails available over the Free plan, rather than gate them as part of the paid plan
That's okey but my manager told me that they paid for the Pro plan for me, but I don’t see it reflected in my account. That's not going to happen then? I should let them know.
@Vrushank | Portkey also I would like to ask you about how could I debug the Guardrail. I've enabled it and setup it. But I'm getting and error and I don't know how to get more information about it.
I get this response:
Plain Text
"hook_results": {
        "before_request_hooks": [
            {
                "verdict": true,
                "id": "pg-pangea-0a785b",
                "checks": [
                    {
                        "error": {
                            "name": "HttpError",
                            "message": "HTTP error! status: 400"
                        },
                        "verdict": false,
                        "data": null,
                        "id": "pangea.textGuard",
                        "execution_time": 334,
                        "created_at": "2025-01-15T20:37:46.569Z"
                    }
                ],
                "feedback": {
                    "value": 5,
                    "weight": 1,
                    "metadata": {
                        "successfulChecks": "",
                        "failedChecks": "",
                        "erroredChecks": "pangea.textGuard"
                    }
                },
                "execution_time": 334,
                "async": false,
                "type": "guardrail",
                "created_at": "2025-01-15T20:37:46.569Z",
                "deny": false
            }
        ]
    }

So I only get the 400 error.
I've read the logs and they show me that there were an error but don't know what failed. I mean in the Logs sections on Guardrails & Feedback
Ah got it - yes, do check with them once
Hmm is it not working for any kind of requests at all? Then I wonder if it may be a problem with the Pangea plugin: https://github.com/Portkey-AI/gateway/tree/main/plugins/pangea

Just double checking if the details here are correct:
I could make it working, there were an issue with recipe field. I assumed that if not set it would be undefined but it seems it's not, so it's needed to set a value.
After fixing that I notice that it need some updates due to changes in the (beta) AI-Guard API. I'll create the issue now and start working on it.
Add a reply
Sign up and join the conversation on Discord