爱意满满的作品展示区。
nocmt

给 LM-Studio Server API 做了个代理,增加联网搜索能力

  •  
  •   nocmt · Feb 11, 2025 · 3402 views
    This topic created in 631 days ago, the information mentioned may be changed or developed.

    效果(图片不够清楚,但功能是实实在在的):

    ade999d309da5b4bf57c73873ab79378.gif

    背景:最近在用 Cherry Studio 客户端,但没联网搜索功能,于是用 Cursor 写个脚本支持代理( AI 生成的也需要自己改改代码和调试),Python 写的,支持本地运行或者 Docker 一键部署。

    目前感觉效果还可以,开源给大家用用,期望多多 Star 。

    联网搜索逻辑:

    Chat 客户端发送内容中携带 #search 、/search 、/ss 或 #ss 强制开启联网搜索,否则由模型自行判断。

    目前支持搜索引擎:

    • Google
    • SearxNG

    本地模型服务:

    • LM Studio

    或者其他兼容 OpenAI API 的服务,就代理了几个 API 。

    开源地址:https://github.com/nocmt/LLMSearchPlus

    10 replies  •  2025-09-15 10:02:30 +08:00
    xialaoban
    xialaoban
    Feb 11, 2025
    1
    docker 需要可访问外网的能力
    nocmt
    nocmt
    OP
    Feb 11, 2025
    2
    @xialaoban 桥接模式就行了
    yyluxe
    yyluxe
    Sep 7, 2025
    3
    就是搞了这个 使用 lm studio 的时候 他就会联网了?
    nocmt
    nocmt
    OP
    Sep 8, 2025
    4
    yyluxe
    yyluxe
    Sep 8, 2025
    5
    @nocmt star
    yyluxe
    yyluxe
    Sep 9, 2025
    6
    现在日常用和给笔记应用和阅读软件用 啦去哪些模型比较不错啊? 我是 64g 的 m4 studio
    yyluxe
    yyluxe
    Sep 11, 2025
    7
    searxng 的配置文件,具体在 .searxng 目录下,有一个 secret_key 需要手动生成,根据系统的不同执行命令不一样,只需要生成 1 次。

    我是 mac 系统 这个 .searxng 从哪找呀
    yyluxe
    yyluxe
    Sep 11, 2025
    8
    还是说 我部署 docker compose 前 输入
    sed -i "s|ultrasecretkey|$(openssl rand -hex 32)|g" .searxng/settings.yml
    这个命令 然后直接启动 compose 就好了
    nocmt
    nocmt
    OP
    Sep 15, 2025
    9
    @miaoxiaomayi #7



    就在项目目录。
    nocmt
    nocmt
    OP
    Sep 15, 2025
    10
    @miaoxiaomayi #8 对,这样就会直接生成
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5167 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:19 · PVG 09:19 · LAX 17:19 · JFK 20:19
    ♥ Do have faith in what you're doing.