1
This commit is contained in:
@@ -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()})
|
||||
|
||||
Reference in New Issue
Block a user