feat: support /v1/responses API
This commit is contained in:
1 parent
f5c2fda22a
commit
8ea4c76f2b
34 files changed
+521
-27
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user