feat: support /v1/responses API

This commit is contained in:
creamlike1024 committed 2025-05-02 13:59:46 +08:00
1 parent f5c2fda22a
commit 8ea4c76f2b
34 files changed
+521 -27

No files matched your search

+4
View File
@@ -200,6 +200,10 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
if streamSupportedChannels[info.ChannelType] {
info.SupportStreamOptions = true
}
// responses 模式不支持 StreamOptions
if relayconstant.RelayModeResponses == info.RelayMode {
info.SupportStreamOptions = false
}
return info
}