Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -11,30 +11,31 @@ short_description: dd
|
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
|
14 |
-
#
|
15 |
|
16 |
-
*
|
17 |
|
18 |
``` bash
|
19 |
curl https://sanbo1200-ddghat.hf.space/models
|
20 |
```
|
21 |
|
22 |
-
*
|
|
|
23 |
``` bash
|
24 |
-
curl --location --request POST 'https
|
25 |
--header 'Content-Type: application/json' \
|
26 |
--data-raw '{
|
27 |
"model": "gpt-4o-mini",
|
28 |
"messages": [
|
29 |
{
|
30 |
"role": "user",
|
31 |
-
"content": "
|
32 |
}
|
33 |
],
|
34 |
"stream": true
|
35 |
}'
|
36 |
|
37 |
-
|
38 |
curl --location --request POST 'http://0.0.0.0:8760/completions' \
|
39 |
--header 'Content-Type: application/json' \
|
40 |
--data-raw '{
|
@@ -42,10 +43,18 @@ curl --location --request POST 'http://0.0.0.0:8760/completions' \
|
|
42 |
"messages": [
|
43 |
{
|
44 |
"role": "user",
|
45 |
-
"content": "
|
46 |
}
|
47 |
],
|
48 |
"stream": true
|
49 |
}'
|
50 |
|
51 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
13 |
|
14 |
+
# infos
|
15 |
|
16 |
+
* models
|
17 |
|
18 |
``` bash
|
19 |
curl https://sanbo1200-ddghat.hf.space/models
|
20 |
```
|
21 |
|
22 |
+
* Request
|
23 |
+
|
24 |
``` bash
|
25 |
+
curl --location --request POST 'https://${|Embed this Space|--|Direct URL|}/completions' \
|
26 |
--header 'Content-Type: application/json' \
|
27 |
--data-raw '{
|
28 |
"model": "gpt-4o-mini",
|
29 |
"messages": [
|
30 |
{
|
31 |
"role": "user",
|
32 |
+
"content": "What is the principle of Bitcoin?"
|
33 |
}
|
34 |
],
|
35 |
"stream": true
|
36 |
}'
|
37 |
|
38 |
+
# local
|
39 |
curl --location --request POST 'http://0.0.0.0:8760/completions' \
|
40 |
--header 'Content-Type: application/json' \
|
41 |
--data-raw '{
|
|
|
43 |
"messages": [
|
44 |
{
|
45 |
"role": "user",
|
46 |
+
"content": "What is the principle of Bitcoin?"
|
47 |
}
|
48 |
],
|
49 |
"stream": true
|
50 |
}'
|
51 |
|
52 |
+
```
|
53 |
+
|
54 |
+
## support models
|
55 |
+
|
56 |
+
- claude-3-haiku
|
57 |
+
- llama-3.1-70b
|
58 |
+
- mixtral-8x7b
|
59 |
+
- gpt-4o-mini
|
60 |
+
|