fix: fix gemini

This commit is contained in:
CaIon
2024-03-08 20:29:04 +08:00
parent 6a83c8ad86
commit 3c3c53051d
5 changed files with 8 additions and 14 deletions

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"