🐛 fix: fix minimax streaming request without calculating token (#106)
This commit is contained in:
parent
d941faac9f
commit
3d60f94a74
@ -239,6 +239,9 @@ func (h *minimaxStreamHandler) convertToOpenaiStream(miniResponse *MiniMaxChatRe
|
||||
streamResponse.ID = miniResponse.ID
|
||||
openaiChoice.FinishReason = convertFinishReason(miniChoice.FinishReason)
|
||||
dataChan <- h.getResponseString(&streamResponse, &openaiChoice)
|
||||
if miniResponse.Usage != nil {
|
||||
h.handleUsage(miniResponse)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user