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

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

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

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



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