Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
mithril-security
/
blind_chat
like
105
Runtime error
App
Files
Files
Community
1
main
blind_chat
/
src
/
lib
/
utils
/
models.ts
lauro1
test
faca43f
about 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
];