File size: 1,472 Bytes
ebc1025
c2c113a
 
 
 
ebc1025
 
c2c113a
 
 
 
ebc1025
 
 
c2c113a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: Duck2api
emoji: 🏆
colorFrom: pink
colorTo: red
sdk: docker
pinned: false
license: apache-2.0
short_description: duck  2 api service
thumbnail: >-
  https://cdn-uploads.huggingface.co/production/uploads/6642196ec80d018c28a68e9a/PHwTcv57ZhgW7--5-HTRn.png
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference


# dai


## huggingface访问

``` bash
curl --location 'https://NiansuhAI-dapi.hf.space/completions' \
--header 'Content-Type: application/json' \
--data '{
     "model": "gpt-4o-mini",
     "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
     "stream": true
   }'

curl --location 'https://NiansuhAI-dapi.hf.space/api/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
     "model": "gpt-4o-mini",
     "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
     "stream": true
   }'

curl --location 'https://NiansuhAI-dapi.hf.space/hf/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
     "model": "gpt-4o-mini",
     "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
     "stream": true
   }'

```

## 支持的模型

- claude-3-haiku
- llama-3.3-70b
- mixtral-8x7b
- gpt-4o-mini