File size: 1,114 Bytes
9827e6c
bdd7300
39ea0b7
 
 
9827e6c
52247ec
39ea0b7
 
9827e6c
 
 
39ea0b7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52247ec
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
56
57
58
59
---
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