Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
unbrandedhuman
/
DUET
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
DUET
/
src
/
lib
/
utils
/
models.ts
unbrandedhuman
Upload 83 files
1e95ed5
almost 2 years ago
raw
Copy download link
history
blame
contribute
delete
Safe
161 Bytes
import
type
{
Model
}
from
"$lib/types/Model"
;
export
const
findCurrentModel
= (
models: Model[], id?:
string
) =>
models.
find
(
(
m
) =>
m.
id
=== id) ?? models[
0
];