Download src/lib/utils/models.ts from WOosts/chat-ui: direct link, hf CLI and curl.
- Browser
- Download file 168 Bytes
-
https://huggingface.co/spaces/WOosts/chat-ui/resolve/main/src/lib/utils/models.ts
- Command line
-
hf download hf://spaces/WOosts/chat-ui/src/lib/utils/models.ts
-
curl -L -o models.ts https://huggingface.co/spaces/WOosts/chat-ui/resolve/main/src/lib/utils/models.ts
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]; | |