Skip to content

Commit 90f4a92

Browse files
committed
add
1 parent 2a6f521 commit 90f4a92

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

a.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
curl -X POST "https://api.siliconflow.cn/v1/chat/completions" \
2+
-H "Authorization: Bearer $SILICONFLOW_API_KEY" \
3+
-H "Content-Type: application/json" \
4+
-d '{
5+
"model": "deepseek-ai/DeepSeek-V3",
6+
"stream": true,
7+
"messages": [
8+
{
9+
"role": "user",
10+
"content": "今天天气好吗?"
11+
},
12+
{
13+
"role": "assistant",
14+
"content": "今天天气不错,要出去玩玩嘛?"
15+
},
16+
{
17+
"role": "user",
18+
"content": "那你有什么地方推荐?"
19+
},
20+
{
21+
"role": "assistant",
22+
"content": "我建议你去公园,春天来了,花朵开了,很美丽。"
23+
},
24+
{
25+
"role": "user",
26+
"content": "给我推荐3个杭州的景点"
27+
}
28+
],
29+
"top_p": 0.8,
30+
"top_k": -1,
31+
"repetition_penalty": 0.8,
32+
"max_tokens": 512
33+
}'

0 commit comments

Comments
 (0)