文本返回读取内容
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 53s

This commit is contained in:
Song367 2025-06-20 15:33:46 +08:00
parent 602bb1fce2
commit 0781e8bd86

View File

@ -336,7 +336,7 @@ func (s *LLMService) processStreamSegment(initialSessage *string, all_message *s
break break
} }
} }
return new_message, audio, true return s_msg, audio, true
} }
// handleStreamingResponse processes streaming responses // handleStreamingResponse processes streaming responses
@ -536,7 +536,7 @@ func (s *LLMService) handleStreamingResponse(req *http.Request, data map[string]
} }
fmt.Println("所有消息:", all_message) fmt.Println("所有消息:", all_message)
messageChan <- Message{ messageChan <- Message{
Answer: new_message, Answer: s_msg,
IsEnd: false, IsEnd: false,
ConversationID: getString(jsonData, "conversation_id"), ConversationID: getString(jsonData, "conversation_id"),
TaskID: getString(jsonData, "task_id"), TaskID: getString(jsonData, "task_id"),