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:
Duplicated from
huggingchat/chat-ui
dorkai
/
DorkAI
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
DorkAI
/
src
/
lib
/
utils
/
models.ts
dorkai
Duplicate from huggingchat/chat-ui
a9997f4
over 3 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
167 Bytes
import
type
{
Model
}
from
"$lib/types/Model"
;
export
const
findCurrentModel
= (
models: Model[], name?:
string
) =>
models.
find
(
(
m
) =>
m.
name
=== name) ?? models[
0
];