-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add base moderation to Providers #513
Conversation
eb54b6b
to
b2023fc
Compare
b2023fc
to
cbab83c
Compare
2199bad
to
e89e10d
Compare
|
||
let response_json: serde_json::Value = response.json().await?; | ||
|
||
let flagged = response_json["results"][0]["flagged"] |
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.
should we check response status before parsing? I think we use handle_response elsewhere
crates/goose/src/providers/base.rs
Outdated
|
||
// Get the content to moderate | ||
let content = latest_user_msg.content.first().unwrap().as_text().unwrap(); | ||
println!("Content to moderate: {}", content); |
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.
remove
7ded65b
to
92fd00a
Compare
92fd00a
to
924a8ec
Compare
Desktop App for this PRThe following build is available for testing: The app is signed and notarized for macOS. After downloading, unzip the file and drag the Goose.app to your Applications folder. This link is provided by nightly.link and will work even if you're not logged into GitHub. |
924a8ec
to
d503e1f
Compare
Desktop App for this PRThe following build is available for testing: The app is signed and notarized for macOS. After downloading, unzip the file and drag the Goose.app to your Applications folder. This link is provided by nightly.link and will work even if you're not logged into GitHub. |
* v1.0: feat: static settings page (#570) styles: adding arcade styles and cash sans (#581) feat: quick spinner while loading tokenizers (#573) Add timeout middleware for clients (#572) chore: remove unused old setup for CLI (#574) feat: env and secrets configuration for mcp server (#565) Add Databricks moderation (#540) feat: add pagination support for tools/list and resources/list (#566) Add resource capabilties to MCP servers that use it (#576) Add goose versions to the UI (#526) fix: Set stdin to null in shell/bash tools (#568) Add base moderation to Providers (#513) feat: set process_group(0) on stdio systems to avoid ctrl-c handling (#567) feat: read only active resources in the agent loop (#560)
Adding in moderation for user inputs.