fix: gemini usage (close #354)

This commit is contained in:
CalciumIon
2024-07-10 16:01:09 +08:00
parent 579fc8129e
commit 4e7e206290
4 changed files with 46 additions and 17 deletions

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