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

Support shorthand format for guardrails in config #743

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

roh26it
Copy link
Collaborator

@roh26it roh26it commented Nov 12, 2024

No description provided.

@roh26it roh26it requested a review from VisargD November 12, 2024 13:50
@@ -784,6 +810,16 @@ export async function tryTargetsRecursively(
currentTarget.requestTimeout = inheritedConfig.requestTimeout;
}

if (currentTarget.inputGuardrails) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also handle scenario where user might have sent both: before_request_hooks and input_guardrails?

@@ -141,3 +141,4 @@ build
.idea
plugins/**/.creds.json
plugins/**/creds.json
src/handlers/test.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentional?

@roh26it
Copy link
Collaborator Author

roh26it commented Nov 22, 2024

We should also support ids as part of this. Will need to add that to the Portkey middleware

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.

3 participants