Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
awacke1
/
Authenticate-chat-ui
like
0
Build error
App
Files
Files
Community
e69cb4a
Authenticate-chat-ui
/
src
/
lib
/
utils
/
models.ts
Adrien Denat
Disable models (#187)
b7b2c8c
unverified
over 1 year 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
];