Open yeung66 opened 2 weeks ago
@yeung66 is attempting to deploy a commit to the NextChat Team on Vercel.
A member of the Team first needs to authorize it.
The recent updates focus on integrating and configuring Google safety settings within the app. These changes include the addition of new enumerations for safety thresholds, UI elements for configuration, localization support, and updates to the access store to include default safety settings.
File | Change Summary |
---|---|
app/client/platforms/google.ts |
Declared accessStore before using it in setting threshold values and minor formatting changes. |
app/components/settings.tsx |
Added UI elements for configuring Google safety settings within the Settings component. |
app/constant.ts |
Introduced GoogleSafetySettingsThreshold enum with new block level options. |
app/locales/cn.ts |
Added GoogleSafetySettings with titles and subtitles related to safety filtering levels. |
app/locales/en.ts |
Added GoogleSafetySettings entries under GeminiPro section for titles and subtitles. |
app/store/access.ts |
Added googleSafetySettings property to DEFAULT_ACCESS_STATE using the new enum. |
sequenceDiagram
participant User
participant SettingsUI
participant AccessStore
participant GoogleAPI
User->>SettingsUI: Open Settings
SettingsUI->>AccessStore: Get Current Safety Settings
AccessStore-->>SettingsUI: Provide Safety Settings
User->>SettingsUI: Update Safety Settings
SettingsUI->>AccessStore: Save New Safety Settings
AccessStore-->>SettingsUI: Acknowledge Changes
User->>GoogleAPI: Make Request using New Safety Settings
GoogleAPI-->>User: Respond with Filtered Data
A change came like a summer breeze,
Google safety eased with ease,
Thresholds set with care and flair,
In settings, users now prepare.
Control and filter what they see,
A safer cloud for you and me.
🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Your build has completed!
[Preview deployment]()
So,Has the feature of this security settings interface been implemented? Still not on the agenda?
problem
Google's Gemini API has safety settings and will block some content that they think dangerous. Google supports setting a security filtering level to control the scope of filtering. The current security filtering level is hard-coded as BLOCK_ONLY_HIGH, which will only block content that Google deems highly likely to be unsafe. This hardcoded approach is not adjustable and lacks flexibility.
So an option for selecting the security filtering level has been added to the settings page. The default remains BLOCK_ONLY_HIGH, but users can now choose other security levels.
related issues:
Summary by CodeRabbit
New Features
Localization
Improvements