修复doubao未返回token信息导致错误
This commit is contained in:
parent
77fc9a844a
commit
81e342b154
|
|
@ -93,6 +93,9 @@ func DouBaoV2(modelParam proto.ModelParam, imCtx *proto.IMParamContext) {
|
||||||
req := model.CreateChatCompletionRequest{
|
req := model.CreateChatCompletionRequest{
|
||||||
Model: modelParam.Model,
|
Model: modelParam.Model,
|
||||||
Messages: messages,
|
Messages: messages,
|
||||||
|
StreamOptions: &model.StreamOptions{
|
||||||
|
IncludeUsage: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
stream, err := doubaoClient.CreateChatCompletionStream(ctx, req)
|
stream, err := doubaoClient.CreateChatCompletionStream(ctx, req)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue