فهرست منبع

fix: correct request mode assignment logic in adaptor

CaIon 7 ماه پیش
والد
کامیت
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
 	} else if strings.Contains(info.UpstreamModelName, "llama") {
 		a.RequestMode = RequestModeLlama
+	} else {
+		a.RequestMode = RequestModeGemini
 	}
-	a.RequestMode = RequestModeGemini
 }
 
 func (a *Adaptor) GetRequestURL(info *relaycommon.RelayInfo) (string, error) {