feat(AI): add done channel for faster response

This commit is contained in:
Yiyang Kang 2023-03-21 12:39:49 +08:00
parent 5e65a2ce32
commit 39868f4f07
3 changed files with 11 additions and 3 deletions

View file

@ -51,6 +51,7 @@ type ChatResponseStream struct {
Created int
Model string
Stream chan string
Done chan struct{}
Err error
}