Update README.md
Browse files
README.md
CHANGED
@@ -20,23 +20,12 @@ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-
|
|
20 |
## huggingface访问
|
21 |
|
22 |
``` bash
|
23 |
-
curl --location 'https://NiansuhAI-dapi.hf.space/completions' \
|
24 |
-
--header 'Content-Type: application/json' \
|
25 |
-
--data '{
|
26 |
-
"model": "gpt-4o-mini",
|
27 |
-
"messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
|
28 |
-
"stream": true
|
29 |
-
}'
|
30 |
|
31 |
-
curl
|
32 |
-
|
33 |
-
--data '{
|
34 |
-
"model": "gpt-4o-mini",
|
35 |
-
"messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
|
36 |
-
"stream": true
|
37 |
-
}'
|
38 |
|
39 |
-
|
|
|
40 |
--header 'Content-Type: application/json' \
|
41 |
--data '{
|
42 |
"model": "gpt-4o-mini",
|
@@ -44,11 +33,5 @@ curl --location 'https://NiansuhAI-dapi.hf.space/hf/v1/chat/completions' \
|
|
44 |
"stream": true
|
45 |
}'
|
46 |
|
47 |
-
```
|
48 |
-
|
49 |
-
## 支持的模型
|
50 |
|
51 |
-
|
52 |
-
- llama-3.3-70b
|
53 |
-
- mixtral-8x7b
|
54 |
-
- gpt-4o-mini
|
|
|
20 |
## huggingface访问
|
21 |
|
22 |
``` bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
+
curl https://niansuhai-dapi.hf.space/v1/models
|
25 |
+
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
+
|
28 |
+
curl --location 'https://niansuhai-dapi.hf.space/api/v1/chat/completions' \
|
29 |
--header 'Content-Type: application/json' \
|
30 |
--data '{
|
31 |
"model": "gpt-4o-mini",
|
|
|
33 |
"stream": true
|
34 |
}'
|
35 |
|
|
|
|
|
|
|
36 |
|
37 |
+
```
|
|
|
|
|
|