修复公式解析的 Bug

This commit is contained in:
RockYang
2025-02-20 11:17:12 +08:00
parent dd675c9a9b
commit 03d33c784c
8 changed files with 69 additions and 44 deletions

View File

@@ -90,13 +90,6 @@ func (h *ChatHandler) sendOpenAiMessage(
var toolCall = false
var arguments = make([]string, 0)
if strings.HasPrefix(req.Model, "o1-") {
content := fmt.Sprintf("AI 思考结束,耗时:%d 秒。\n\n", time.Now().Unix()-session.Start)
contents = append(contents, "> AI 正在思考中...\n")
contents = append(contents, content)
utils.SendChunkMsg(ws, content)
}
scanner := bufio.NewScanner(response.Body)
for scanner.Scan() {
line := scanner.Text()