blind_chat / src /lib /utils /models.ts
lauro1's picture
test
faca43f
raw
history blame
161 Bytes
import type { Model } from "$lib/types/Model";
export const findCurrentModel = (models: Model[], id?: string) =>
models.find((m) => m.id === id) ?? models[0];