Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
DakMak
/
chat-uigl
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
chat-uigl
/
src
/
lib
/
utils
/
models.ts
DakMak
Duplicate from coyotte508/chat-ui
ece0c29
over 1 year 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
];