curl --location --request POST 'http://localhost:11434/api/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "llama2-7b",
"prompt": "string",
"stream": false,
"options": {
"num_keep": 1024,
"seed": 42,
"num_predict": 128,
"top_k": 40,
"top_p": 0.9,
"temperature": 0.8,
"repeat_penalty": 1.1,
"stop": [
"\n",
"。"
]
}
}'
{
"model": "llama3.2",
"created_at": "2023-12-18T19:52:07.071755Z",
"response": "",
"done": true
}