-
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 1 commit
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 +1,5 @@ | ||
| BACKEND_URL=http://localhost:8000 | ||
| BACKEND_URL=http://localhost:8000 | ||
|
|
||
| #for guardrails | ||
| GUARDRAILS_URL = http://localhost:8001 | ||
| GUARDRAILS_TOKEN = | ||
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.
Normalize the new env entries before merging.
This hunk will still trip
dotenv-linterbecause of the spaces around=and the trailing whitespace onGUARDRAILS_TOKEN.🧹 Suggested cleanup
📝 Committable suggestion
🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 4-4: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 5-5: [SpaceCharacter] The line has spaces around equal sign
(SpaceCharacter)
[warning] 5-5: [TrailingWhitespace] Trailing whitespace detected
(TrailingWhitespace)
[warning] 5-5: [UnorderedKey] The GUARDRAILS_TOKEN key should go before the GUARDRAILS_URL key
(UnorderedKey)
🤖 Prompt for AI Agents