chat-v4 / chat-ui /src /lib /utils /models.ts
Матенков Андрей
Chat moved from github
39a2f10
import type { Model } from "$lib/types/Model";
export const findCurrentModel = (models: Model[], id?: string) =>
models.find((m) => m.id === id) ?? models[0];