fix: remove duplicated text (#636)

This commit is contained in:
Kelvin Chiu 2023-09-14 16:01:06 +08:00 committed by GitHub
parent 59acb72a59
commit 34da6e6dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -70,9 +70,8 @@ func (p *iFlytekModelProvider) QueryText(question string, writer io.Writer, buil
}
err = flushData(response)
if builder != nil {
builder.WriteString(response)
if err != nil {
return err
}
return nil