mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-16 06:27:58 +00:00
64 lines
2 KiB
JSON
64 lines
2 KiB
JSON
{
|
|
"request": {
|
|
"method": "POST",
|
|
"url": "http://localhost:11434/api/generate",
|
|
"headers": {},
|
|
"body": {
|
|
"model": "llama3.2:3b-instruct-fp16",
|
|
"prompt": "<|begin_of_text|>Michael Jordan was born in 1963. He played basketball for the Chicago Bulls. He retired in 2003.Please respond in JSON format with the schema: {\"properties\": {\"name\": {\"title\": \"Name\", \"type\": \"string\"}, \"year_born\": {\"title\": \"Year Born\", \"type\": \"string\"}, \"year_retired\": {\"title\": \"Year Retired\", \"type\": \"string\"}}, \"required\": [\"name\", \"year_born\", \"year_retired\"], \"title\": \"AnswerFormat\", \"type\": \"object\"}",
|
|
"raw": true,
|
|
"format": {
|
|
"properties": {
|
|
"name": {
|
|
"title": "Name",
|
|
"type": "string"
|
|
},
|
|
"year_born": {
|
|
"title": "Year Born",
|
|
"type": "string"
|
|
},
|
|
"year_retired": {
|
|
"title": "Year Retired",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"name",
|
|
"year_born",
|
|
"year_retired"
|
|
],
|
|
"title": "AnswerFormat",
|
|
"type": "object"
|
|
},
|
|
"options": {
|
|
"temperature": 0.0,
|
|
"max_tokens": 50,
|
|
"num_predict": 50
|
|
},
|
|
"stream": false
|
|
},
|
|
"endpoint": "/api/generate",
|
|
"model": "llama3.2:3b-instruct-fp16"
|
|
},
|
|
"response": {
|
|
"body": {
|
|
"__type__": "ollama._types.GenerateResponse",
|
|
"__data__": {
|
|
"model": "llama3.2:3b-instruct-fp16",
|
|
"created_at": "2025-08-01T20:56:48.732625Z",
|
|
"done": true,
|
|
"done_reason": "stop",
|
|
"total_duration": 1710455750,
|
|
"load_duration": 47968625,
|
|
"prompt_eval_count": 119,
|
|
"prompt_eval_duration": 223000000,
|
|
"eval_count": 29,
|
|
"eval_duration": 1437000000,
|
|
"response": "{ \"name\": \"Michael Jordan\", \"year_born\": \"1963\", \"year_retired\": \"2003\"}\n ",
|
|
"thinking": null,
|
|
"context": null
|
|
}
|
|
},
|
|
"is_streaming": false
|
|
}
|
|
}
|