feat: 集成 You.com Search API provider#42
Open
tra371 wants to merge 1 commit into
Open
Conversation
- 在 tools/search/providers.py 中添加 youcom_search()(POST https://ydc-index.io/v1/search) - 将 youcom 接入 fallback_search 多引擎降级链 - 在 common/config.py 中添加 youcom_api_key,在 .env.example 中添加 YOUCOM_API_KEY Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
|
针对该问题的实现 - #41 |
Open
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
tools/search/providers.py中添加youcom_search()— 调用 You.com Search API(POST https://ydc-index.io/v1/search),结果格式与其他 provider 保持一致fallback_search的引擎处理链中注册"youcom",与 Tavily/Serper/Exa 等引擎共同组成多引擎降级链路common/config.py添加youcom_api_key,在.env.example添加YOUCOM_API_KEY测试计划
YOUCOM_API_KEY,通过SEARCH_ENGINES=youcom确认 youcom 引擎返回结果YOUCOM_API_KEY缺失时自动切换到下一个引擎