feat: support claude convert to gemini

This commit is contained in:
CaIon
2025-07-26 13:31:33 +08:00
parent 2cb7b9ae62
commit 360012bed2
8 changed files with 84 additions and 37 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func GetRandomSatisfiedChannel(group string, model string, retry int) (*Channel,
}
}
} else {
return nil, errors.New("channel not found")
return nil, nil
}
err = DB.First(&channel, "id = ?", channel.Id).Error
return &channel, err
+1 -1
View File
@@ -130,7 +130,7 @@ func getRandomSatisfiedChannel(group string, model string, retry int) (*Channel,
channels := group2model2channels[group][model]
if len(channels) == 0 {
return nil, errors.New("channel not found")
return nil, nil
}
if len(channels) == 1 {