Giter VIP home page Giter VIP logo

synologychatbotgpt's People

Contributors

antsword avatar hhhguany avatar mcurti avatar violet956 avatar xueheng-li avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

synologychatbotgpt's Issues

当输入dd使用搜索引擎时报错

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

Very slow when the server is ran on the same NAS

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?

这个docker是必须在群辉上运行么?

好像默认启动的ip地址就是127.0.0.1:5008,我在一台公网的服务器上运行这个docker,使用群辉的chat向它发送信息,都显示无法像机器人服务器发送请求,同时在log文件中 显示下面这个

image

无法向机器人服务器发送请求。请联系机器人拥有者。

环境:群晖
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)')))

输出代码的时候无法显示

例如:

写一段python代码,计算100以内的质数
ChatGPT [聊天机器人]18:06
...
ChatGPT [聊天机器人]18:06(仅对您可见)
无法向机器人服务器发送请求。请联系机器人拥有者

运行py提示出错,Use a production WSGI server instead

你好,
环境: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

  • Serving Flask app 'talentBot'
  • Debug mode: off
    INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

该如何解决呢?麻烦了,谢谢。

stream模式下返回信息异常

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镜像

使用serpapi的时候一直会报错

机器人其他功能可以正常运行,但是使用serpapi的时候,会一直报错

local variable 'ddg_results' referenced before assignment

好像是在说这个变量在赋值之前就被引用了,不知道是哪里代码的问题。 另外就是文档里面说的这个 serpapi_key_for_google 实际上在settings.py文件中是 serpapi_key 不知道这个是否有影响。

关于system_prompt聊天机器人身份的问题

你好大佬,我是在群晖docker里面部署的。有个问题想请教一下,就是当我在变量system_prompt里设定好他的身份以后,过段时间再问他做自我介绍,他就不认自己的身份了。请问如果要想一直让他以某种身份与我对话,该怎么操作呢?

Error sending message to Synology Chat

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?

请问下为什么机器人回复的是gpt-3模型,是我api的问题吗

我是基于GPT-3模型开发的助手,由OpenAI提供支持。GPT-3模型的发布日期是2020年6月。请注意,我是一个实时生成的助手,所以我的回答可能会根据最新的数据和信息进行更新。如果你有任何特定的问题或需要最新的信息,请随时告诉我,我会尽力提供帮助。

搜索引擎功能無法使用

謝謝各位開發這個功能,畢竟synoogychat很冷門,萬分感謝

在第五點的「具备使用搜索引擎(Google, Bing, Baidu, DuckDuckGo)搜索最新网络信息回答问题的能力,用关键词bb或gg开头即可实时搜索网络信息」
我嘗試使用google 或bing輸入詞,只會出現數字,如下:
image

請問是為什麼呢?
相關錯誤訊息如圖:
image

謝謝解答

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.