style: 调整速度
This commit is contained in:
@@ -110,7 +110,7 @@ public class AiChatService : ApplicationService
|
||||
// 创建一个队列来缓存消息
|
||||
var messageQueue = new ConcurrentQueue<string>();
|
||||
// 设置输出速率(例如每50毫秒输出一次)
|
||||
var outputInterval = TimeSpan.FromMilliseconds(80);
|
||||
var outputInterval = TimeSpan.FromMilliseconds(100);
|
||||
// 标记是否完成接收
|
||||
var isComplete = false;
|
||||
// 启动一个后台任务来消费队列
|
||||
|
||||
Reference in New Issue
Block a user