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

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

No files matched your search

+5
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)