sanbo commited on
Commit
24d55f2
·
1 Parent(s): 2224f03

update sth. at 2024-11-14 14:54:54

Browse files
Files changed (1) hide show
  1. README.md +19 -0
README.md CHANGED
@@ -35,6 +35,25 @@ go build -o duck2api
35
  chmod +x ./duck2api
36
  ./duck2api
37
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  ### Docker部署
40
  暂时支持
 
35
  chmod +x ./duck2api
36
  ./duck2api
37
  ```
38
+ ## huggingface访问
39
+
40
+ ``` bash
41
+ curl --location 'https://sanbo1200-duck2api.hf.space/completions' \
42
+ --header 'Content-Type: application/json' \
43
+ --data '{
44
+ "model": "gpt-4o-mini",
45
+ "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
46
+ "stream": true
47
+ }'
48
+
49
+ curl --location 'https://sanbo1200-duck2api.hf.space/api/v1/chat/completions' \
50
+ --header 'Content-Type: application/json' \
51
+ --data '{
52
+ "model": "gpt-4o-mini",
53
+ "messages": [{"role":"system","content":"你是一个辅助机器人"},{"role": "user", "content": "你的知识库最后什么日期"}],
54
+ "stream": true
55
+ }'
56
+ ```
57
 
58
  ### Docker部署
59
  暂时支持