sanbo commited on
Commit
ddd19c2
·
1 Parent(s): a487faf

update sth. at 2025-01-04 23:25:52

Browse files
Files changed (2) hide show
  1. .gitignore +2 -0
  2. debug.md → dev.md +21 -1
.gitignore CHANGED
@@ -73,4 +73,6 @@ env
73
  .env
74
  .venv
75
  pip-log.txt
 
 
76
 
 
73
  .env
74
  .venv
75
  pip-log.txt
76
+ dev.md
77
+
78
 
debug.md → dev.md RENAMED
@@ -1,4 +1,24 @@
1
- # test
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  ## 启动服务
4
 
 
1
+ # 本地请求
2
+
3
+ ## huggingface 请求
4
+
5
+ curl -X POST https://sanbo1200-planrun.hf.space/chat1 \
6
+ -H 'Accept: application/json' \
7
+ -H 'Authorization: Bearer YOUR_API_KEY' \
8
+ -H "Content-Type: application/json" \
9
+ -d '{
10
+ "model": "gpt-4o-xx",
11
+ "messages": [{"role": "user", "content": "Say this is a test!"}],
12
+ "temperature": 0.7,
13
+ "max_tokens": 150,
14
+ "top_p": 1.0,
15
+ "frequency_penalty": 0.0,
16
+ "presence_penalty": 0.0
17
+ }'
18
+
19
+
20
+
21
+
22
 
23
  ## 启动服务
24