Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Duplicated from
mithril-security/blind_chat
FallnAI
/
chat
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
chat
/
src
/
lib
/
utils
/
models.ts
lauro1
test
faca43f
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
];