mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +08:00
feat: update stream_options again
This commit is contained in:
parent
20da8228df
commit
9ef3212e6c
@ -87,9 +87,7 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
|
|||||||
err := json.Unmarshal(common.StringToByteSlice(lastStreamData), &lastStreamResponse)
|
err := json.Unmarshal(common.StringToByteSlice(lastStreamData), &lastStreamResponse)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if lastStreamResponse.Usage != nil && service.ValidUsage(lastStreamResponse.Usage) {
|
if lastStreamResponse.Usage != nil && service.ValidUsage(lastStreamResponse.Usage) {
|
||||||
if info.ShouldIncludeUsage {
|
if !info.ShouldIncludeUsage {
|
||||||
containStreamUsage = true
|
|
||||||
} else {
|
|
||||||
shouldSendLastResp = false
|
shouldSendLastResp = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user