mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-11 02:43:44 +08:00
fix
This commit is contained in:
@@ -126,7 +126,7 @@ func (channel *Channel) Update() (err error) {
|
||||
models := strings.Split(channel.Models, ",")
|
||||
var filteredModels []string
|
||||
for _, model := range models {
|
||||
if _, ok := mapping[model]; ok {
|
||||
if _, ok := mapping[model]; !ok {
|
||||
filteredModels = append(filteredModels, model)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user