sanbo1200 commited on
Commit
45d8b44
·
verified ·
1 Parent(s): 45470e9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -8
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://sanbo1200-ddghat.hf.space/completions' \
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
+