blushyes / bchat Goto Github PK
View Code? Open in Web Editor NEWb站回复小助手。
b站回复小助手。
成功!2024-08-05 01:53:27,227 GLOBAL_LOG INFO: 问题:Q:马化腾是谁?
2024-08-05 01:53:27,227 GLOBAL_LOG INFO: 正在准备回复中......
2024-08-05 01:53:27,404 GLOBAL_LOG ERROR: 访问讯飞出错了
2024-08-05 01:53:27,404 GLOBAL_LOG ERROR: Error Code: 11200, Error: AppIdNoAuthError:(09:53:27.389) tokens.total
question 下面这句话如果和给定python列表中的任意一个字符串很相似,你就回答T,否则回答F,并告诉我跟哪个相似
例如:当列表为["你的职业是什么","yes"],我给出的句子为"你的工作是?"的时候,因为"你的工作是?"和列表中的"你的职业是什么"是相似的,所以你要输出"T|你的职业是什么"
现在,列表为:['你是谁', '你是基于什么模型的', 'UP主是谁'],我给你的句子是:"Q:马化腾是谁?"
Traceback (most recent call last):
File "/app/main.py", line 10, in
start()
File "/app/core/init.py", line 111, in start
reply_self.start_loop()
File "/app/core/init.py", line 27, in start_loop
return asyncio.run(self._reply_loop())
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/app/core/init.py", line 51, in _reply_loop
if await reply(cmt):
File "/app/core/init.py", line 76, in reply
answer = xunfei.ask(cmt.message)
File "/app/big_model/xunfei/init.py", line 55, in ask
flag, answer = _pre_ask(content)
File "/app/big_model/xunfei/init.py", line 81, in _pre_ask
response = _proxy_ask(question)
File "/app/big_model/xunfei/init.py", line 119, in _proxy_ask
return _ask(content).generations[-1][-1].text
AttributeError: 'list' object has no attribute 'generations'
[root@hcss-ecs-ba9f BChat]# docker logs 9c3eb4d5742c
2024-04-24 15:06:16,812 GLOBAL_LOG INFO: 当前登录平台为linux
Traceback (most recent call last):
File "/app/main.py", line 11, in
context.login_manager.login(context.uid)
File "/app/core/login/simple.py", line 15, in login
credential = login.login_with_qrcode_term() # 在终端扫描二维码登录
File "/usr/local/lib/python3.10/site-packages/bilibili_api/login.py", line 176, in login_with_qrcode_term
qrcode_data = update_qrcode_data()
File "/usr/local/lib/python3.10/site-packages/bilibili_api/login.py", line 89, in update_qrcode_data
qrcode_data = httpx.get(api["url"], follow_redirects=True).json()["data"]
File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 755, in json
return jsonlib.loads(self.content.decode(encoding), **kwargs)
File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
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.