Upload README_EN.md with huggingface_hub
Browse files- README_EN.md +12 -9
README_EN.md
CHANGED
@@ -1,12 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<div align="center">
|
2 |
<h1>
|
3 |
360Zhinao (360智脑)
|
4 |
</h1>
|
5 |
</div>
|
6 |
<div align="center">
|
|
|
7 |
🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>   |   
|
8 |
-
|
9 |
-
💬 <a href="https://github.com/Qihoo360/360zhinao/tree/main/assets/WeChat.png">WeChat (微信)</a>  
|
10 |
</div>
|
11 |
<br>
|
12 |
<p align="center">
|
@@ -321,9 +326,9 @@ python openai_api.py
|
|
321 |
|
322 |
Request parameter
|
323 |
```shell
|
324 |
-
curl
|
325 |
-
|
326 |
-
|
327 |
"max_new_tokens": 200,
|
328 |
"do_sample": true,
|
329 |
"top_k": 0,
|
@@ -331,10 +336,8 @@ curl --location --request POST 'http://localhost:8360/v1/chat/completions' \
|
|
331 |
"temperature": 1.0,
|
332 |
"repetition_penalty": 1.0,
|
333 |
"messages": [
|
334 |
-
{
|
335 |
-
|
336 |
-
"content": "你叫什么名字?"
|
337 |
-
}
|
338 |
]
|
339 |
}'
|
340 |
```
|
|
|
1 |
+
<p align="left">
|
2 |
+
<a href="./README.md">中文</a> |   English</a> 
|
3 |
+
</p>
|
4 |
+
<br>
|
5 |
+
|
6 |
<div align="center">
|
7 |
<h1>
|
8 |
360Zhinao (360智脑)
|
9 |
</h1>
|
10 |
</div>
|
11 |
<div align="center">
|
12 |
+
🤗 <a href="https://huggingface.co/qihoo360">Hugging Face</a>   |   
|
13 |
🤖 <a href="https://www.modelscope.cn/profile/qihoo360">ModelScope</a>   |   
|
14 |
+
💬 <a href="./assets/WeChat.png">WeChat (微信)</a>  
|
|
|
15 |
</div>
|
16 |
<br>
|
17 |
<p align="center">
|
|
|
326 |
|
327 |
Request parameter
|
328 |
```shell
|
329 |
+
curl 'http://localhost:8360/v1/chat/completions' \
|
330 |
+
-H 'Content-Type: application/json' \
|
331 |
+
-d '{
|
332 |
"max_new_tokens": 200,
|
333 |
"do_sample": true,
|
334 |
"top_k": 0,
|
|
|
336 |
"temperature": 1.0,
|
337 |
"repetition_penalty": 1.0,
|
338 |
"messages": [
|
339 |
+
{"role": "system", "content": "You are a helpful assistant."},
|
340 |
+
{"role": "user", "content": "你好"}
|
|
|
|
|
341 |
]
|
342 |
}'
|
343 |
```
|