Commit 40848f28 by CaIon

fix: correct request mode assignment logic in adaptor

parent 91febc30
...@@ -69,8 +69,9 @@ func (a *Adaptor) Init(info *relaycommon.RelayInfo) { ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment