yanyutin753 / googlesearch-on-wechat Goto Github PK
View Code? Open in Web Editor NEW支持微信机器人搜图,搜索文本Gpt自动总结,适用于chatgpt-on-wechat项目插件
支持微信机器人搜图,搜索文本Gpt自动总结,适用于chatgpt-on-wechat项目插件
微信用提问词,机器人回复:Request failed with status code: 403
Response text: {"message":"Unauthorized.","statusCode":403}
在微信上使用该插件进行”搜索“”搜图“时,不会出现响应,但是可以进行正常的聊天以及其他插件的使用。
日志上的提示为
Traceback (most recent call last):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/channel/chat_channel.py", line 168, in _handle
reply = self._generate_reply(context)
File "/app/channel/chat_channel.py", line 178, in _generate_reply
e_context = PluginManager().emit_event(
File "/app/plugins/plugin_manager.py", line 189, in emit_event
instance.handlers[e_context.event](e_context, *args, **kwargs)
File "/app/plugins/googleSearch-On-Wechat/GoogleSearch.py", line 47, in on_handle_context
self.handle_image_search(e_context, content[len("搜图 "):])
File "/app/plugins/googleSearch-On-Wechat/GoogleSearch.py", line 97, in handle_image_search
response = requests.request("POST", url, headers=headers, data=payload)
File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 496, in _make_request
conn.request(
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 399, in request
self.putheader(header, value)
File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 313, in putheader
super().putheader(header, *values)
File "/usr/local/lib/python3.10/http/client.py", line 1256, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 0-4: ordinal not in range(256)
机器情况:阿里云服务器,国内的,Ubuntu22.04
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.