feat: 增强 KnowledgeQAStream Client参数

This commit is contained in:
wizardchen
2025-12-31 12:19:35 +08:00
committed by lyingbug
parent ffd83951ff
commit d6a1647be3
3 changed files with 16 additions and 10 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ func ExampleUsage() {
err = apiClient.KnowledgeQAStream(context.Background(),
session.ID,
question,
&KnowledgeQARequest{Query: question},
func(response *StreamResponse) error {
if response.ResponseType == ResponseTypeAnswer {
answer.WriteString(response.Content)
@@ -181,7 +181,7 @@ func ExampleUsage() {
err = apiClient.KnowledgeQAStream(context.Background(),
session.ID,
streamQuestion,
&KnowledgeQARequest{Query: streamQuestion},
func(response *StreamResponse) error {
fmt.Print(response.Content)
return nil