Commit 98c13623 by CalciumIon

feat: update stream_options again

parent a9770319
......@@ -87,9 +87,7 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
err := json.Unmarshal(common.StringToByteSlice(lastStreamData), &lastStreamResponse)
if err == nil {
if lastStreamResponse.Usage != nil && service.ValidUsage(lastStreamResponse.Usage) {
if info.ShouldIncludeUsage {
containStreamUsage = true
} else {
if !info.ShouldIncludeUsage {
shouldSendLastResp = false
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment