Replies: 7 comments 3 replies
-
|
设置 DIY APIkey, 再代理上检查后翻译成模型供应商的 APIkey |
Beta Was this translation helpful? Give feedback.
-
能否指出官方文档中对应配置的位置,谢谢 |
Beta Was this translation helpful? Give feedback.
-
可以参考网上一些ollama的DIY APIKey的方式,比如在nginx指定网址添加鉴权的方式 |
Beta Was this translation helpful? Give feedback.
-
他说的应该是在 Cherry Studio 中如何指定 UA 或者 API Key 之类的? |
Beta Was this translation helpful? Give feedback.
-
|
https://docs.searxng.org/src/searx.botdetection.html#searx.botdetection.http_user_agent.USER_AGENT 刚看到这两个感觉SearXNG也应该可以通过它自己的配置来设定接受的 UA 的,不过没有找到示意的配置。 |
Beta Was this translation helpful? Give feedback.
-
|
最好还是虚拟内网, searxng 翻了一圈没看到啥鉴权的东西, cherry 也不支持 http 验证好像() |
Beta Was this translation helpful? Give feedback.
-
|
参考一下这个文章,在服务器端使用FastAPI进行API_KEY的判断?没试过行不行但感觉思路没问题 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue 检查清单
平台
Windows
版本
v1.1.2
您的问题
有没有全局的登录或密钥限制?
我现在的做法是在VPS的nginx反代上限制了UA需要带上CherryStudio字样,也就变成了仅供CherryStudio调用。
但是这方法也太土了(不过这也提醒了我,如果CherryStudio提供了自定义UA,并且在其中插入随机生成的字符串作为唯一标识的话,也未尝不是一种土密钥)
相关背景
No response
补充信息
优先级
低 (有空再看)
Beta Was this translation helpful? Give feedback.
All reactions