Commit Graph

60 Commits

Author SHA1 Message Date
John Smith
bc89552701 优化需要翻译的条件 2024-03-03 09:40:05 +08:00
John Smith
263d4d8e65 优化Gemini提示词变量格式 2024-02-27 22:21:09 +08:00
John Smith
0d7f847dc8 优化Gemini提示词 2024-02-26 00:03:09 +08:00
John Smith
8c3d62d08d 优化Gemini翻译 2024-02-25 18:22:13 +08:00
HalfMAI
21a06e68b1
Add gemini (#157)
* add ginimi

* 更改Prompt

* 1. 更改Prompt
2. 删除打包bat
3. 添加Proxy 和重试
4. 当有额外错误时提供基本的FinishedReason输出
5. 添加Model参数
2024-02-23 20:58:04 +08:00
John Smith
6ad2e145b2 命令行参数合并到配置里 2024-02-18 17:04:20 +08:00
John Smith
c657a368ae Merge branch 'batch_heartbeat' into dev
# Conflicts:
#	main.py
#	services/avatar.py
#	services/chat.py
#	services/translate.py
#	update.py
2024-02-05 23:34:03 +08:00
John Smith
ee3b11e001 防止协程执行完之前就被GC 2024-01-25 20:11:42 +08:00
John Smith
263bf80546 完善插件消息 2024-01-15 01:15:31 +08:00
John Smith
1772caebe3 添加防止无限重连的保险措施、开放平台心跳添加随机延迟 2024-01-06 18:34:24 +08:00
John Smith
33d3303ff1 修复报错、优化限流参数 2023-11-27 21:47:22 +08:00
John Smith
d4d300b376 采用更保守的重连时间策略,防止雪崩 2023-11-26 17:00:14 +08:00
John Smith
9c3538f17b 限制请求开放平台的频率 2023-11-26 15:50:12 +08:00
John Smith
65a9efa37e 开放平台项目心跳改成批量心跳 2023-11-26 12:18:14 +08:00
John Smith
dbf4de5fa5 升级blivedm 2023-11-25 22:54:53 +08:00
John Smith
be5b49fae4 添加更多插件接口 2023-11-08 00:21:17 +08:00
John Smith
0f9fcddde8 发送房间消息给插件 2023-11-05 21:42:43 +08:00
John Smith
b0b38bf0f0 完成插件和blivechat连接 2023-11-05 16:29:11 +08:00
John Smith
f886506c39 添加插件框架 2023-11-04 16:52:07 +08:00
reito
09a8538406
Relay 方式传递 author_id (uid) (#138)
* Relay 方式传递各种 author_id (uid)

* Rename author_id to uid
2023-09-24 18:36:38 +08:00
John Smith
39ab15e1ac 修复开放平台接口礼物显示的是单价而不是总价的问题 2023-09-18 20:08:08 +08:00
John Smith
a11de39166 修复后端重连时报错 2023-09-16 23:01:45 +08:00
John Smith
dccb3fc890 降级身份码错误的日志 2023-09-16 12:23:01 +08:00
John Smith
ef7f0dc0ac 获取头像失败时尝试用用户名随机生成 2023-09-16 11:31:46 +08:00
John Smith
7e656ebe09 重连间隔时间可增长,防止一直重连失败时消耗太多资源 2023-09-15 22:47:17 +08:00
John Smith
05fc89dbbe 前端在身份码错误时跳到帮助页面,不再重试连接 2023-09-13 00:13:11 +08:00
John Smith
a35d7a5bfc 移除自动缩小头像尺寸 2023-09-10 00:06:33 +08:00
John Smith
72c11d60da 移除从用户中心获取头像的接口 2023-09-10 00:03:29 +08:00
John Smith
68f8ab3a92 前端支持使用身份码 2023-09-09 17:13:53 +08:00
John Smith
cad573312b 前端初始化房间时从后端接口获取文本表情 2023-09-08 23:54:47 +08:00
John Smith
de0bac3119 添加开放平台接口的代理 2023-09-08 20:53:04 +08:00
John Smith
07569033fa 通过服务器转发时支持开放平台接口 2023-09-07 00:56:32 +08:00
John Smith
72841ab46e 优雅地停机 2023-09-06 21:34:04 +08:00
John Smith
fe141bc8fd 升级blivedm 2023-09-03 22:53:15 +08:00
John Smith
7c2c48273c 纯表情消息不需要翻译 2023-08-28 19:36:33 +08:00
John Smith
5bdf2e41df 修复Python 3.11 asyncio.wait报错
close #120
2023-08-28 19:28:52 +08:00
John Smith
3d9095536d 支持官方的文本表情 2023-08-27 00:23:52 +08:00
John Smith
00c47a3e55 调整一些头像参数 2023-08-26 16:21:35 +08:00
John Smith
93e374ac12 添加其他头像接口 2023-08-24 23:07:17 +08:00
John Smith
dac531920e 添加通过勋章信息获取头像的接口
# Conflicts:
#	services/avatar.py

# Conflicts:
#	services/avatar.py
2023-08-24 22:29:34 +08:00
John Smith
c3566823c1 获取头像接口封装成类 2023-08-24 21:52:51 +08:00
John Smith
bea8711353 翻译区分优先级,高优先级的可重试 2023-08-05 21:27:40 +08:00
John Smith
8fa63f1d75 优化一些参数 2023-07-31 23:32:53 +08:00
John Smith
8e7d9b266b 使用LRU缓存、头像优先使用Protobuf协议中的、优化获取头像代码 2023-07-30 22:22:47 +08:00
John Smith
63f541b87e 使用Python 3.8的asyncio特性 2023-07-29 12:48:57 +08:00
John Smith
e478959a1b 修改一个命名 2023-07-29 11:52:09 +08:00
John Smith
57ec8495e1 修复aiohttp的一些警告 2023-07-29 01:22:21 +08:00
John Smith
d5e8054e12 升级SQLAlchemy到2.0.19 2023-07-29 01:07:04 +08:00
John Smith
b98a8f6680 修复cookie导致的获取头像失败 2023-07-06 23:25:07 +08:00
John Smith
914a41700e Squashed commit of the following:
commit 414258724b456628a2e361a11de102dbdc5a2fe4
Author: John Smith <xfgryujk@126.com>
Date:   Tue Jul 4 23:58:59 2023 +0800

    修正代码风格和wbi签名实现

commit 34a6546bd6ac00a893d36a65c20d479b113e3f53
Author: Bryan不可思议 <programripper@foxmail.com>
Date:   Thu Jun 22 15:52:51 2023 +0800

    Update services/avatar.py

    Co-authored-by: Hao Guan <10684225+hguandl@users.noreply.github.com>

commit f9dd56a13c296ff938560bcd161570f000855b35
Author: ProgramRipper <programripper@foxmail.com>
Date:   Tue Jun 13 03:33:15 2023 +0800

    fix: syntax error

commit a0354f2480a7c561e6dcc223fa9d4834310540b5
Author: ProgramRipper <programripper@foxmail.com>
Date:   Tue Jun 13 03:08:55 2023 +0800

    fix: get_avatar_url
2023-07-05 00:04:00 +08:00