devcxl / wechatbot Goto Github PK
View Code? Open in Web Editor NEWWeChatBot 基于ItChat-UOS的 个人微信号OpenAI机器人
License: MIT License
WeChatBot 基于ItChat-UOS的 个人微信号OpenAI机器人
License: MIT License
报错如下,感觉是调用api超时,但是一直循环。也不能正常回答问题了
Traceback (most recent call last):
File "itchat/components/register.py", line 78, in configured_reply
File "main.py", line 81, in friend
File "handler/text.py", line 36, in handler_text
File "function/weather_function.py", line 45, in execute
File "requests/api.py", line 73, in get
File "requests/api.py", line 59, in request
File "requests/sessions.py", line 589, in request
File "requests/sessions.py", line 703, in send
File "requests/adapters.py", line 519, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='restapi.amap.com', port=443): Max retries exceeded with url: /v3/geocode/geo?key=&address=%E6%9D%AD%E5%B7%9E (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbc6626b3d0>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2024-04-04 18:23:44,934 - httpx [INFO] HTTP Request: POST https://newapi..xyz/v1/chat/completions "HTTP/1.1 200 OK"
2024-04-04 18:25:54,160 - itchat [WARNING] Traceback (most recent call last):
File "urllib3/connection.py", line 198, in _new_conn
File "urllib3/util/connection.py", line 85, in create_connection
File "urllib3/util/connection.py", line 73, in create_connection
TimeoutError: [Errno 110] Connection timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 793, in urlopen
File "urllib3/connectionpool.py", line 491, in _make_request
File "urllib3/connectionpool.py", line 467, in _make_request
File "urllib3/connectionpool.py", line 1099, in _validate_conn
File "urllib3/connection.py", line 616, in connect
File "urllib3/connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fbc66276e80>: Failed to establish a new connection: [Errno 110] Connection timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "requests/adapters.py", line 486, in send
File "urllib3/connectionpool.py", line 847, in urlopen
File "urllib3/util/retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='restapi.amap.com', port=443): Max retries exceeded with url: /v3/geocode/geo?key=ca&address=%E6%9D%AD%E5%B7%9E (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbc66276e80>: Failed to establish a new connection: [Errno 110] Connection timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "itchat/components/register.py", line 78, in configured_reply
File "main.py", line 81, in friend
File "handler/text.py", line 36, in handler_text
File "function/weather_function.py", line 45, in execute
File "requests/api.py", line 73, in get
File "requests/api.py", line 59, in request
File "requests/sessions.py", line 589, in request
File "requests/sessions.py", line 703, in send
File "requests/adapters.py", line 519, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='restapi.amap.com', port=443): Max retries exceeded with url: /v3/geocode/geo?key=&address=%E6%9D%AD%E5%B7%9E (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbc66276e80>: Failed to establish a new connection: [Errno 110] Connection timed out'))
2024-04-04 18:25:55,700 - httpx [INFO] HTTP Request: POST https://newapi..xyz/v1/chat/completions "HTTP/1.1 200 OK"
希望大佬考虑增加mj绘画,企业微信号登录使用功能,个人号有封号风险。
作者你好,我之前看到一个,使用3.5的key,然后进行函数调用,可以实现,你任意发一张图片,然后可以识别,返回结果。请问作者知道这个不?
某些模型调用FunctionCall返回的方法不为实际方法名而是以下格式的文本
```python \n get_current_weather('上海','摄氏')\n```
会导致如下错误
2024-03-29 10:23:35,914 - itchat [WARNING] Traceback (most recent call last):
File "itchat/components/register.py", line 78, in configured_reply
File "main.py", line 81, in friend
File "handler/text.py", line 34, in handler_text
KeyError: 'python'
我本来是想直接在docker里面修改代码的,这样就不用配环境了哈哈。
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.