是否能把codex cli后台的搜索功能反构出来用到自己的agent代码中?

yjh 2026-06-28 11:30 1

当我让codex搜索什么东西的时候,它自动调用了一个搜索工具,输出类似下面:

• Searching the web

• Searched the web for open source PlantUML renderer JavaScript browser SVG npm

◦ Searching the web

• Searched the web for @plantuml/core CDN by jsDelivr - A CDN for npm and GitHub


如题,可以逆向出这个接口吗?如果不能的话,目前有没有免费可用的这种搜索接口呢?谢谢各位专业大佬~

最新回复 (2)
  • peng chuan 06-28 11:38
    1

    openai的api是自带这个tools的 web_search,不需要逆向

  • yuancjun 06-28 12:24
    2

    不用逆向的,只需要保证上游是 openai 的 API 或者从 codex oauth 反代出来的中转 API 都支持的



    • https://developers.openai.com/api/docs/guides/tools-web-search

* 帖子来源Linux.do
返回