mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 13:00:14 +09:00
fix parse error
This commit is contained in:
parent
b949bd00f3
commit
b08c36bc21
@ -58,7 +58,8 @@ func (c *ChatInstance) ProcessLine(data string) string {
|
||||
var form *ChatStreamResponse
|
||||
if form = utils.UnmarshalForm[ChatStreamResponse](item); form == nil {
|
||||
if form = utils.UnmarshalForm[ChatStreamResponse](item); form == nil {
|
||||
return fmt.Sprintf("%s\n", item)
|
||||
fmt.Println(fmt.Sprintf("chatgpt error: cannot parse response: %s", item))
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user