Compare commits

..

2 Commits

Author SHA1 Message Date
CaIon
f20b558e22 fix: correct request mode assignment logic in adaptor 2025-07-30 23:32:20 +08:00
CaIon
54447bf227 fix: remove debug print statement 2025-07-30 23:29:45 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -553,7 +553,6 @@ func handlerMultiKeyUpdate(channel *Channel, usingKey string, status int) {
}
func UpdateChannelStatus(channelId int, usingKey string, status int, reason string) bool {
println("UpdateChannelStatus called with channelId:", channelId, "usingKey:", usingKey, "status:", status, "reason:", reason)
if common.MemoryCacheEnabled {
channelStatusLock.Lock()
defer channelStatusLock.Unlock()

View File

@@ -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) {