-
Notifications
You must be signed in to change notification settings - Fork 0
Guardrails UI: Configure and list validators #116
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
base: main
Are you sure you want to change the base?
Changes from all commits
3bd304e
644cc49
6498f19
d75659e
b43c0c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,2 +1,6 @@ | ||||
| BACKEND_URL=http://localhost:8000 | ||||
| NEXT_PUBLIC_GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com | ||||
|
|
||||
| GUARDRAILS_URL = http://localhost:8001 | ||||
| GUARDRAILS_TOKEN = | ||||
|
|
||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| NEXT_PUBLIC_GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com | ||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -294,6 +294,12 @@ function PromptEditorContent() { | |
| }), | ||
| }, | ||
| }, | ||
| ...(currentConfigBlob.input_guardrails?.length && { | ||
| input_guardrails: currentConfigBlob.input_guardrails, | ||
| }), | ||
| ...(currentConfigBlob.output_guardrails?.length && { | ||
| output_guardrails: currentConfigBlob.output_guardrails, | ||
| }), | ||
|
Comment on lines
+297
to
+302
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Loading an existing config still strips guardrails on the next save. These fields are written out here now, but 🤖 Prompt for AI Agents |
||
| }; | ||
|
|
||
| const existingConfigMeta = allConfigMeta.find( | ||
|
|
@@ -502,6 +508,7 @@ function PromptEditorContent() { | |
| isSaving={isSaving} | ||
| collapsed={!showConfigPane} | ||
| onToggle={() => setShowConfigPane(!showConfigPane)} | ||
| apiKey={activeKey?.key ?? ""} | ||
| /> | ||
| </div> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.