Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
BuiMinh
/
Mit
like
0
Paused
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Mit
/
src
/
lib
/
utils
/
models.ts
DevLLM
Add application file
3baea8e
over 1 year ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
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
];