Next Chat部署教程参考上一篇,这里不过多废话

打开发现,选择新建

授权方式:不授权

把代码粘贴到,小黑框中,然后按一下键盘的tab键,下面会多出一个
SearXNG Search

{
  "openapi": "3.1.0",
  "info": {
    "title": "SearXNG Search API",
    "description": "A search engine. Useful for answering questions about current events. Input should be a search query.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://searxng.qunqin.org"
    }
  ],
  "paths": {
    "/search": {
      "post": {
        "operationId": "SearXNGSearch",
        "description": "A search engine. Useful for answering questions about current events. Input should be a search query.",
        "deprecated": false,
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Keywords for the query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "s",
            "in": "query",
            "description": "Optional pagination parameter, can be `0`.",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "o",
            "in": "query",
            "description": "Response format, can be `json`.",
            "schema": {
              "type": "string",
              "default": "json"
            }
          },
          {
            "name": "api",
            "in": "query",
            "description": "Optional parameter for API type, can be `d.js`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "kl",
            "in": "query",
            "description": "Locale settings (e.g., `wt-wt`, `us-en`, etc.). Defaults to `wt-wt`.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bing_market",
            "in": "query",
            "description": "Market settings for Bing search, e.g., `us-en`, `uk-en`, etc.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {}
  }
}

解释:
SearXNG搜索API使用RESTful接口接收用户查询,通过参数(如关键词和分页)调用多个搜索引擎(如Bing、Google、Baidu)。后端整合结果后,由LLM选择最佳结果并以JSON格式返回,包括多个搜索结果和选中的最佳链接。这简化了信息获取过程,适合需要综合多来源信息的场景。

这个参数( “url”: “https://searxng.qunqin.org”)可以替换成自己搭建的searxng实例
记得在searxng的配置文件中设置:
-search:
--formats:
--- html
--- json

插件效果: