可以用postman测试
本地URL地址 请求方式 POST
http://localhost:11434/api/generate
入参的json
{
"model": "deepseek-r1:1.5b",
"prompt": "你好,请介绍一下你自己",
"stream": false,
"options": {
"temperature": 0.7
}
}
返回的json
{
"model": "deepseek-r1:1.5b",
"created_at": "2025-02-07T08:55:45.1672074Z",
"response": "
"done": true,
"done_reason": "stop",
"context": [
151644,
108386,
37945,
109432,
107828,
151645,
151648,
271,
151649,
271,
111308,
6313,
104198,
67071,
105538,
102217,
30918,
50984,
9909,
33464,
39350,
7552,
73218,
100013,
9370,
100168,
110498,
33464,
39350,
10911,
16,
1773,
101063,
104949,
33108,
104703,
100700,
43815,
14880,
101275,
100777,
111116,
1773
],
"total_duration": 5053504800,
"load_duration": 3178829200,
"prompt_eval_count": 7,
"prompt_eval_duration": 840000000,
"eval_count": 38,
"eval_duration": 1017000000
}