Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
huggingchat/chat-ui
Aitek
/
chat-ui
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
5a31018
chat-ui
/
src
/
lib
/
utils
/
models.ts
Last commit not found
raw
Copy download link
history
blame
Safe
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
];