fix: clean up duplicate models

This commit is contained in:
Zhang Minghan 2024-02-03 18:31:24 +08:00
parent b1eea1cac8
commit ce5a165c1f

View File

@ -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",