mirror of
https://github.com/coaidev/coai.git
synced 2025-05-28 09:20:18 +09:00
fix: clean up duplicate models
This commit is contained in:
parent
b1eea1cac8
commit
ce5a165c1f
@ -1,3 +1,5 @@
|
||||
import {getUniqueList} from "@/utils/base.ts";
|
||||
|
||||
export type Channel = {
|
||||
id: number;
|
||||
name: string;
|
||||
@ -206,9 +208,9 @@ export const ChannelInfos: Record<string, ChannelInfo> = {
|
||||
},
|
||||
};
|
||||
|
||||
export const channelModels: string[] = Object.values(ChannelInfos).flatMap(
|
||||
export const channelModels: string[] = getUniqueList(Object.values(ChannelInfos).flatMap(
|
||||
(info) => info.models,
|
||||
);
|
||||
));
|
||||
|
||||
export const channelGroups: string[] = [
|
||||
"anonymous",
|
||||
|
Loading…
Reference in New Issue
Block a user