Merge pull request #574 from Calcium-Ion/channel-tag

feat: 初步集成渠道标签分组功能
This commit is contained in:
Calcium-Ion
2024-11-30 17:45:16 +08:00
committed by GitHub
11 changed files with 1482 additions and 593 deletions

View File

@@ -98,6 +98,11 @@ func OaiStreamHandler(c *gin.Context, resp *http.Response, info *relaycommon.Rel
shouldSendLastResp = false
}
}
for _, choice := range lastStreamResponse.Choices {
if choice.FinishReason != nil {
shouldSendLastResp = true
}
}
}
if shouldSendLastResp {
service.StringData(c, lastStreamData)