Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
jdelavande/chat-ui-energy
chkla
/
chat-ui-energy
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
0922e42
chat-ui-energy
/
src
/
lib
/
utils
/
models.ts
Adrien Denat
Disable models (#187)
c202241
unverified
about 2 years ago
raw
Copy download link
history
blame
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
];