feat: add Baidu V2 channel support and improve model handling

This commit is contained in:
JustSong
2025-02-09 12:37:26 +08:00
parent 0b6d03d6c6
commit dd65b997dd
9 changed files with 83 additions and 2 deletions

13
common/utils/array.go Normal file
View File

@@ -0,0 +1,13 @@
package utils
func DeDuplication(slice []string) []string {
m := make(map[string]bool)
for _, v := range slice {
m[v] = true
}
result := make([]string, 0, len(m))
for v := range m {
result = append(result, v)
}
return result
}