This commit is contained in:
2026-08-07 13:18:53 +08:00
parent 410c87e02f
commit 828594baef
19 changed files with 774 additions and 66 deletions
+3
View File
@@ -68,6 +68,9 @@ func (c *message) Chat(ctx context.Context, req *dto.ChatReq) (*dto.ChatRes, err
},
func(delta string) {
send("delta", map[string]string{"content": delta})
},
func(thinking string) {
send("thinking", map[string]string{"type": "thinking", "message": thinking})
})
if err != nil {
send("error", map[string]string{"message": err.Error()})