-
Notifications
You must be signed in to change notification settings - Fork 3.7k
config: add baidu_search example to config.example.json #1990
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
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -286,6 +286,12 @@ | |||||
| "search_engine": "search_std", | ||||||
| "max_results": 5 | ||||||
| }, | ||||||
| "baidu_search": { | ||||||
| "enabled": false, | ||||||
| "api_key": "", | ||||||
| "base_url": "https://qianfan.baidubce.com/v2/ai_search/web_search", | ||||||
| "max_results": 10 | ||||||
| }, | ||||||
| "fetch_limit_bytes": 10485760, | ||||||
|
||||||
| "fetch_limit_bytes": 10485760, |
Copilot
AI
Mar 25, 2026
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.
Within tools.web, fetch_limit_bytes appears twice (once earlier in the object and again here). Duplicate keys are ambiguous in JSON and can lead to confusing “last one wins” behavior; remove one of the entries to keep the example unambiguous.
| "fetch_limit_bytes": 10485760, |
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.
config.example.jsondoes not include aversionfield, soLoadConfigwill treat it as legacy v0 and runloadConfigV0migration. The v0 schema currently doesn’t includebaidu_search, so this example block will be ignored during migration; consider adding the currentversionto the example, or updating the v0 migration structs to includebaidu_searchso the example actually takes effect.