fix: gemini usage (close #354)

This commit is contained in:
CalciumIon
2024-07-10 16:01:09 +08:00
parent f1b3e28f67
commit 04dced378c
4 changed files with 46 additions and 17 deletions
+2 -1
View File
@@ -67,7 +67,8 @@ func GenRelayInfo(c *gin.Context) *RelayInfo {
if info.ChannelType == common.ChannelTypeAzure {
info.ApiVersion = GetAPIVersion(c)
}
if info.ChannelType == common.ChannelTypeOpenAI || info.ChannelType == common.ChannelTypeAnthropic || info.ChannelType == common.ChannelTypeAws {
if info.ChannelType == common.ChannelTypeOpenAI || info.ChannelType == common.ChannelTypeAnthropic ||
info.ChannelType == common.ChannelTypeAws || info.ChannelType == common.ChannelTypeGemini {
info.SupportStreamOptions = true
}
return info