Skip to content

Commit

Permalink
readme...
Browse files Browse the repository at this point in the history
  • Loading branch information
devinyf committed May 25, 2024
1 parent fa95066 commit 20404de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func main() {
* 流式输出结果的 request_id/finish_reason/token_usage 等信息在调用完成后返回的 resp 结果中统一获取
*/
streamCallbackFn := func(ctx context.Context, chunk []byte) error {
// 也可以通过闭包的形式 使用外部定义的 channel 将结果传递出去
// 也可以通过外部定义的 channel 将结果传递出去
fmt.Print(string(chunk))
return nil
}
Expand Down

0 comments on commit 20404de

Please sign in to comment.