修复doubao未返回token信息导致错误

This commit is contained in:
junleea 2025-03-30 14:21:59 +08:00
parent 77fc9a844a
commit 81e342b154
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ func DouBaoV2(modelParam proto.ModelParam, imCtx *proto.IMParamContext) {
req := model.CreateChatCompletionRequest{
Model: modelParam.Model,
Messages: messages,
StreamOptions: &model.StreamOptions{
IncludeUsage: true,
},
}
stream, err := doubaoClient.CreateChatCompletionStream(ctx, req)