chat-ui-custom / src /lib /utils /models.ts
that1cooldude
Initial chat-ui deployment without binary files
973a4e3
Raw
History Blame Contribute Delete
168 Bytes
import type { Model } from "$lib/types/Model";
export const findCurrentModel = (models: Model[], id?: string): Model =>
models.find((m) => m.id === id) ?? models[0];