xueheng-li / synologychatbotgpt Goto Github PK
View Code? Open in Web Editor NEWA multi-talented chatbot that integrates OpenAI api and Synology Chat.
Home Page: https://github.com/Xueheng-Li/SynologyChatbotGPT
License: MIT License
A multi-talented chatbot that integrates OpenAI api and Synology Chat.
Home Page: https://github.com/Xueheng-Li/SynologyChatbotGPT
License: MIT License
唯一能找到的是一个 acidpop/synobot,里面都是韩文的看不懂。
我安装的是docker的windows桌面客户端,在里面进行搜索是找不到的。需要什么其他的途径么?
使用gg和bb要求它使用谷歌或bing时,回复为ddg:10 bing:10 google :10
I am experiencing an issue with sending a message to Synology Chat using the provided webhook. When I attempt to send a message, I receive the following error:
"Error sending message to Synology Chat: HTTPSConnectionPool(host='192.168.1.123', port=5001): Max retries exceeded with url: /webapi/entry.cgi?api=SYNO.Chat.External&method=chatbot&version=2&token=%22TK0NOzhlYGw5qVv0Z4qV1MZvyMheKEAo2iftHrSwqUlZ99ZNBqqbCwUN9WLft3DO%22 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))"
I have attempted to set the "verify" parameter to "False" in my code, but this has not resolved the issue. Instead, I received an InsecureRequestWarning with the following message:
"InsecureRequestWarning: Unverified HTTPS request is being made to host '192.168.1.123'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings"
Although I received a warning that an unverified HTTPS request was being made, the HTTP request came back with a status code of 200.
I am still not able to receive any messages back from the chatbot. Can you please provide assistance in resolving this issue?
公司内部使用,等待GPT4太久了.
如果能使用上网页版的GPT,又省钱又快啊.
你好大佬,我是在群晖docker里面部署的。有个问题想请教一下,就是当我在变量system_prompt里设定好他的身份以后,过段时间再问他做自我介绍,他就不认自己的身份了。请问如果要想一直让他以某种身份与我对话,该怎么操作呢?
需要配置什么外部访问权限吗?
docker版本错误信息:
2023-06-26T04:06:27.940688527Z stdout IndexError: string index out of range
2023-06-26T04:06:27.940635622Z stdout if re.search(r'[\n]', word[-1]):
2023-06-26T04:06:27.940572993Z stdout File "/app/my_module.py", line 671, in process
我尝试了下切换非stream模式可用,之前没有问题,是不是最近openai回复消息的格式改了,不知道为什么这里会出现空值,我不会做docker,能不能辛苦稍微处理下这里重新打包一下docker镜像
例如:
写一段python代码,计算100以内的质数
ChatGPT [聊天机器人]18:06
...
ChatGPT [聊天机器人]18:06(仅对您可见)
无法向机器人服务器发送请求。请联系机器人拥有者
我是基于GPT-3模型开发的助手,由OpenAI提供支持。GPT-3模型的发布日期是2020年6月。请注意,我是一个实时生成的助手,所以我的回答可能会根据最新的数据和信息进行更新。如果你有任何特定的问题或需要最新的信息,请随时告诉我,我会尽力提供帮助。
国内申请不了api😭
ChatGPT 的官方 API 地址,在国内是不能访问的,但是可以使用cloudflare进行中转,使用自己的地址。例如这个项目中转,可以在setup.py中自行设置就好了
When I run the basicBot.py on synology itself it eats up a lot of I/O waiting and my NAS is lagging enormously. I did not change anything in the settings.py, I use all entries as they are by default, can it be that I miss some configurations?
环境:群晖
chat里发送消息,chat里提示:“无法向机器人服务器发送请求。请联系机器人拥有者。”
puty中报错如下:
openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1124)')))
这个是什么原因,我换了好几个邮箱,都不能注册成功,都是这个提示
群晖里面虚拟机安装了旁路由192.168.10.2
docker设置了macvlan,网关选择了旁路由地址,docker内部可以ping通主路由192.168.10.1和192.168.10.2,外网死活出不去
机器人其他功能可以正常运行,但是使用serpapi的时候,会一直报错
local variable 'ddg_results' referenced before assignment
好像是在说这个变量在赋值之前就被引用了,不知道是哪里代码的问题。 另外就是文档里面说的这个 serpapi_key_for_google 实际上在settings.py文件中是 serpapi_key 不知道这个是否有影响。
你好,
环境:pve装的debian 11,python 3.9
运行 talentBot.py 显示信息如下:
NFO:llama_index.token_counter.token_counter:> [build_index_from_documents] Total LLM token usage: 0 tokens
INFO:llama_index.token_counter.token_counter:> [build_index_from_documents] Total embedding token usage: 0 tokens
该如何解决呢?麻烦了,谢谢。
Search keywords: synology
Searching...
ERROR:duckduckgo_search.utils:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/duckduckgo_search/utils.py", line 39, in _get_vqd
vqd_index_start = resp.content.index(b"vqd='") + 5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: subsection not found
WARNING:duckduckgo_search.utils:keywords=synology. _get_vqd() is None. Refresh SESSION and retry...
ERROR:duckduckgo_search.utils:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/duckduckgo_search/utils.py", line 39, in _get_vqd
vqd_index_start = resp.content.index(b"vqd='") + 5
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: subsection not found
WARNING:duckduckgo_search.utils:keywords=synology. _get_vqd() is None. Refresh SESSION and retry...
ERROR:talentBot:Exception on /webhook [POST]
Traceback (most recent call last):
File "/Users/jesse/ChatGPT/SynologyChatbotGPT/my_module.py", line 747, in search
ddg_results = my_ddg(keywords, n=num_results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jesse/ChatGPT/SynologyChatbotGPT/my_module.py", line 253, in my_ddg
for r in search_results:
TypeError: 'NoneType' object is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jesse/ChatGPT/SynologyChatbotGPT/talentBot.py", line 54, in webhook
output = bots[user_id].process(message, num_search_results=5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jesse/ChatGPT/SynologyChatbotGPT/my_module.py", line 653, in process
self.search(
File "/Users/jesse/ChatGPT/SynologyChatbotGPT/my_module.py", line 751, in search
print(f"Error: {e}; ddg_results = {ddg_results}")
^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'ddg_results' where it is not associated with a value
能否在Docker里的环境加个Proxy的字段 在请求openai.com的时候走proxy代理
ChatGPT接口在国内已经不能直接访问了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.