Просмотр исходного кода

fix: correct request mode assignment logic in adaptor

CaIon 7 месяцев назад
Родитель
Сommit
f20b558e22
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      relay/channel/vertex/adaptor.go

+ 2 - 1
relay/channel/vertex/adaptor.go

@@ -69,8 +69,9 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) {
 		a.RequestMode = RequestModeClaude
 		a.RequestMode = RequestModeClaude
 	} else if strings.Contains(info.UpstreamModelName, "llama") {
 	} else if strings.Contains(info.UpstreamModelName, "llama") {
 		a.RequestMode = RequestModeLlama
 		a.RequestMode = RequestModeLlama
+	} else {
+		a.RequestMode = RequestModeGemini
 	}
 	}
-	a.RequestMode = RequestModeGemini
 }
 }
 
 
 func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {
 func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {