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