开源项目https://github.com/acheong08/Bard
代码调试
记得开全局,或者在代码加上
os.environ["http_proxy"] = "http://127.0.0.1:1080"
os.environ["https_proxy"] = "http://127.0.0.1:1080"
from os import environ
from Bard import Chatbot
import os
os.environ["http_proxy"] = "http://127.0.0.1:1080"
os.environ["https_proxy"] = "http://127.0.0.1:1080"
Secure_1PSID = "YwgLWWJq6baq***********************************KwOVFFlgv1wg."
Secure_1PSIDTS = "sidts-CjIBPu3jIWg**********************dayafncVxAA"
print(Secure_1PSID,Secure_1PSIDTS)
chatbot = Chatbot(Secure_1PSID, Secure_1PSIDTS)
print(chatbot.ask("你的模型?"))
如何对接wxbot :微信机器人接口文档