search
让你的大模型具备联网能力
POST/v1/ai/search
AI 搜索接口
让你的大模型具备联网能力
Optional attributes
- Name
- crawl_results
- Type
- inter
- Description
- 要爬行的最大结果数,默认为0,表示不爬行,最大值为10 
 
- Name
- max_results
- Type
- inter
- Description
- 最大的搜索结果条数 
 
- Name
- query
- Type
- string
- Description
- 查询的内容 
 
- Name
- search_service
- Type
- string
- Description
- 搜索引擎可以选择:google,bing,duckduckgo 
 
Request
POST
/v1/search  curl --request POST \
    --url https://api.fe8.cn/v1/ai/search \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
    "crawl_results": 0,
    "max_results": 5,
    "query": "小米股票的价格",
    "search_service": "bing"
  }'
Response
  [
    {
      "content": "<string>",
      "link": "<string>",
      "snippet": "<string>",
      "title": "<string>"
    }
  ]