|
--- |
|
title: ddgchat |
|
emoji: 👀 |
|
colorFrom: blue |
|
colorTo: yellow |
|
sdk: docker |
|
pinned: false |
|
app_port: 7860 |
|
short_description: dd |
|
--- |
|
|
|
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |
|
|
|
# infos |
|
|
|
* models |
|
|
|
``` bash |
|
curl https://sanbo1200-ddghat.hf.space/models |
|
``` |
|
|
|
* Request |
|
|
|
``` bash |
|
curl --location --request POST 'https://${|Embed this Space|--|Direct URL|}/completions' \ |
|
--header 'Content-Type: application/json' \ |
|
--data-raw '{ |
|
"model": "gpt-4o-mini", |
|
"messages": [ |
|
{ |
|
"role": "user", |
|
"content": "What is the principle of Bitcoin?" |
|
} |
|
], |
|
"stream": true |
|
}' |
|
|
|
# local |
|
curl --location --request POST 'http://0.0.0.0:8760/completions' \ |
|
--header 'Content-Type: application/json' \ |
|
--data-raw '{ |
|
"model": "gpt-4o-mini", |
|
"messages": [ |
|
{ |
|
"role": "user", |
|
"content": "What is the principle of Bitcoin?" |
|
} |
|
], |
|
"stream": true |
|
}' |
|
|
|
``` |
|
|
|
## support models |
|
|
|
- claude-3-haiku |
|
- llama-3.1-70b |
|
- mixtral-8x7b |
|
- gpt-4o-mini |