Skip to content

Feature: Add Gemini Web Search toggle and implementation.#6721

Open
queentizy wants to merge 3 commits intoChatGPTNextWeb:mainfrom
queentizy:test-gemini
Open

Feature: Add Gemini Web Search toggle and implementation.#6721
queentizy wants to merge 3 commits intoChatGPTNextWeb:mainfrom
queentizy:test-gemini

Conversation

@queentizy
Copy link

@queentizy queentizy commented Mar 11, 2026

💻 变更类型 | Change Type

  • feat
  • fix
  • refactor
  • perf
  • style
  • test
  • docs
  • ci
  • chore
  • build

🔀 变更说明 | Description of Change

📝 补充信息 | Additional Information

@queentizy
Copy link
Author

I have implemented the Gemini Web Search feature to allow the model to access real-time information. Specifically, I:

Updated the Config Store: Added a new enableWebSearch flag to the global settings and model masks.
Enhanced the UI: Integrated a toggle switch in both the Settings and Mask Editor pages, allowing users to enable or disable search capabilities per model.
Integrated the Gemini Tool: Modified the Gemini API client logic to include the google_search tool dynamically whenever the feature is toggled on.
Added Localization: Updated the language files (CN and EN) to ensure the new "Web Search" labels are correctly displayed.
image

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.

2 participants