Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
muryshev
/
chat-v3
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
chat-v3
/
chat-ui
/
src
/
lib
/
utils
/
models.ts
Матенков Андрей
Chat moved from github
39a2f10
over 2 years ago
raw
Copy download link
history
blame
contribute
delete
161 Bytes
import
type
{
Model
}
from
"$lib/types/Model"
;
export
const
findCurrentModel
= (
models: Model[], id?:
string
) =>
models.
find
(
(
m
) =>
m.
id
=== id) ?? models[
0
];