Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
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 2 years ago
raw
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
];