Giter VIP home page Giter VIP logo

wechatbot's People

Contributors

devcxl 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

Watchers

 avatar  avatar  avatar  avatar

wechatbot's Issues

调用高德地图api查询天气时卡住

image

报错如下,感觉是调用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,然后进行函数调用,可以实现,你任意发一张图片,然后可以识别,返回结果。请问作者知道这个不?

bug: 使用某些模型不支持FunctionCall时会报错

某些模型调用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'

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.