Runze Su
Runze Su
### Describe the bug I have a game on my Mac's local drive, and I added the main EXE file used to start game to Mythic. However, when I launch...
### What happened / 发生了什么 在每次进行工具调用前, 机器人会发送内容为 `*No response*` 的无意义文本 ### Reproduce / 如何复现? ### AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used....
### 在什么场景下,需要你请求的功能? _No response_ ### 解决方案 我看到 1.x 版本的翻译过程会阻塞文档遍历, 导致翻译请求不能充分并发, 成为主要性能瓶颈. 因此我采用两轮遍历的思路以加速翻译: - 第一轮遍历使用一个假的翻译器, 它直接返回原文, 因此这轮遍历很快就完成, 与此同时它为所有翻译任务发出异步请求 - 等待所有请求返回, 这一过程可以充分并发 - 第二轮遍历翻译器直接从缓存中获取译文, 因此也可以很快完成 用这种方法可以明显提高翻译速度 另外, 我认为在 python 中用异步实现 IO 并发比多线程要好得多....
### Before you asking - [x] I have searched the existing issues - [x] I spend at least 5 minutes for thinking and preparing - [x] I have carefully checked...