fix: fix gemini

This commit is contained in:
CaIon
2024-03-08 20:29:04 +08:00
parent 889c15b7bd
commit 124369073a
5 changed files with 8 additions and 14 deletions
+3
View File
@@ -20,6 +20,9 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo, request dto.GeneralOpenAIReq
func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
version := "v1"
if info.ApiVersion != "" {
version = info.ApiVersion
}
action := "generateContent"
if info.IsStream {
action = "streamGenerateContent"