chat-ui / src /lib /utils /models.ts
Adrien Denat
Disable models (#187)
b7b2c8c unverified
raw history blame
No virus
161 Bytes
import type { Model } from "$lib/types/Model";
export const findCurrentModel = (models: Model[], id?: string) =>
models.find((m) => m.id === id) ?? models[0];