|
| 1 | +{ |
| 2 | + "request": { |
| 3 | + "method": "POST", |
| 4 | + "url": "http://localhost:11434/api/generate", |
| 5 | + "headers": {}, |
| 6 | + "body": { |
| 7 | + "model": "llama3.2:3b-instruct-fp16", |
| 8 | + "raw": true, |
| 9 | + "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nYou are a helpful assistant. You have access to functions, but you should only use them if they are required.\nYou are an expert in composing functions. You are given a question and a set of possible functions.\nBased on the question, you may or may not need to make one function/tool call to achieve the purpose.\n\nIf you decide to invoke any of the function(s), you MUST put it in the format of [func_name1(params_name1=params_value1, params_name2=params_value2...), func_name2(params)]\nIf you decide to invoke a function, you SHOULD NOT include any other text in the response. besides the function call in the above format.\nFor a boolean parameter, be sure to use `True` or `False` (capitalized) for the value.\n\n\nHere is a list of functions in JSON format that you can invoke.\n\n[\n {\n \"name\": \"greet_everyone\",\n \"description\": \"\",\n \"parameters\": {\n \"type\": \"dict\",\n \"required\": [\"url\"],\n \"properties\": {\n \"url\": {\n \"type\": \"string\",\n \"description\": \"\"\n }\n }\n }\n },\n {\n \"name\": \"get_boiling_point\",\n \"description\": \"\n Returns the boiling point of a liquid in Celsius or Fahrenheit.\n\n :param liquid_name: The name of the liquid\n :param celsius: Whether to return the boiling point in Celsius\n :return: The boiling point of the liquid in Celcius or Fahrenheit\n \",\n \"parameters\": {\n \"type\": \"dict\",\n \"required\": [\"liquid_name\"],\n \"properties\": {\n \"liquid_name\": {\n \"type\": \"string\",\n \"description\": \"\"\n },\n \"celsius\": {\n \"type\": \"boolean\",\n \"description\": \"\",\n \"default\": \"True\"\n }\n }\n }\n }\n]\n\nYou can answer general questions or invoke tools when necessary.\nIn addition to tool calls, you should also augment your responses by using the tool outputs.\nYou are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nSay hi to the world. Use tools to do so.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n[greet_everyone(url=\"world\")]<|eot_id|><|start_header_id|>ipython<|end_header_id|>\n\nHello, world!<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", |
| 10 | + "options": { |
| 11 | + "temperature": 0.0 |
| 12 | + }, |
| 13 | + "stream": true |
| 14 | + }, |
| 15 | + "endpoint": "/api/generate", |
| 16 | + "model": "llama3.2:3b-instruct-fp16" |
| 17 | + }, |
| 18 | + "response": { |
| 19 | + "body": [ |
| 20 | + { |
| 21 | + "__type__": "ollama._types.GenerateResponse", |
| 22 | + "__data__": { |
| 23 | + "model": "llama3.2:3b-instruct-fp16", |
| 24 | + "created_at": "2025-09-27T18:05:56.663224Z", |
| 25 | + "done": false, |
| 26 | + "done_reason": null, |
| 27 | + "total_duration": null, |
| 28 | + "load_duration": null, |
| 29 | + "prompt_eval_count": null, |
| 30 | + "prompt_eval_duration": null, |
| 31 | + "eval_count": null, |
| 32 | + "eval_duration": null, |
| 33 | + "response": "How", |
| 34 | + "thinking": null, |
| 35 | + "context": null |
| 36 | + } |
| 37 | + }, |
| 38 | + { |
| 39 | + "__type__": "ollama._types.GenerateResponse", |
| 40 | + "__data__": { |
| 41 | + "model": "llama3.2:3b-instruct-fp16", |
| 42 | + "created_at": "2025-09-27T18:05:56.706706Z", |
| 43 | + "done": false, |
| 44 | + "done_reason": null, |
| 45 | + "total_duration": null, |
| 46 | + "load_duration": null, |
| 47 | + "prompt_eval_count": null, |
| 48 | + "prompt_eval_duration": null, |
| 49 | + "eval_count": null, |
| 50 | + "eval_duration": null, |
| 51 | + "response": " can", |
| 52 | + "thinking": null, |
| 53 | + "context": null |
| 54 | + } |
| 55 | + }, |
| 56 | + { |
| 57 | + "__type__": "ollama._types.GenerateResponse", |
| 58 | + "__data__": { |
| 59 | + "model": "llama3.2:3b-instruct-fp16", |
| 60 | + "created_at": "2025-09-27T18:05:56.751075Z", |
| 61 | + "done": false, |
| 62 | + "done_reason": null, |
| 63 | + "total_duration": null, |
| 64 | + "load_duration": null, |
| 65 | + "prompt_eval_count": null, |
| 66 | + "prompt_eval_duration": null, |
| 67 | + "eval_count": null, |
| 68 | + "eval_duration": null, |
| 69 | + "response": " I", |
| 70 | + "thinking": null, |
| 71 | + "context": null |
| 72 | + } |
| 73 | + }, |
| 74 | + { |
| 75 | + "__type__": "ollama._types.GenerateResponse", |
| 76 | + "__data__": { |
| 77 | + "model": "llama3.2:3b-instruct-fp16", |
| 78 | + "created_at": "2025-09-27T18:05:56.794187Z", |
| 79 | + "done": false, |
| 80 | + "done_reason": null, |
| 81 | + "total_duration": null, |
| 82 | + "load_duration": null, |
| 83 | + "prompt_eval_count": null, |
| 84 | + "prompt_eval_duration": null, |
| 85 | + "eval_count": null, |
| 86 | + "eval_duration": null, |
| 87 | + "response": " assist", |
| 88 | + "thinking": null, |
| 89 | + "context": null |
| 90 | + } |
| 91 | + }, |
| 92 | + { |
| 93 | + "__type__": "ollama._types.GenerateResponse", |
| 94 | + "__data__": { |
| 95 | + "model": "llama3.2:3b-instruct-fp16", |
| 96 | + "created_at": "2025-09-27T18:05:56.837831Z", |
| 97 | + "done": false, |
| 98 | + "done_reason": null, |
| 99 | + "total_duration": null, |
| 100 | + "load_duration": null, |
| 101 | + "prompt_eval_count": null, |
| 102 | + "prompt_eval_duration": null, |
| 103 | + "eval_count": null, |
| 104 | + "eval_duration": null, |
| 105 | + "response": " you", |
| 106 | + "thinking": null, |
| 107 | + "context": null |
| 108 | + } |
| 109 | + }, |
| 110 | + { |
| 111 | + "__type__": "ollama._types.GenerateResponse", |
| 112 | + "__data__": { |
| 113 | + "model": "llama3.2:3b-instruct-fp16", |
| 114 | + "created_at": "2025-09-27T18:05:56.879926Z", |
| 115 | + "done": false, |
| 116 | + "done_reason": null, |
| 117 | + "total_duration": null, |
| 118 | + "load_duration": null, |
| 119 | + "prompt_eval_count": null, |
| 120 | + "prompt_eval_duration": null, |
| 121 | + "eval_count": null, |
| 122 | + "eval_duration": null, |
| 123 | + "response": " further", |
| 124 | + "thinking": null, |
| 125 | + "context": null |
| 126 | + } |
| 127 | + }, |
| 128 | + { |
| 129 | + "__type__": "ollama._types.GenerateResponse", |
| 130 | + "__data__": { |
| 131 | + "model": "llama3.2:3b-instruct-fp16", |
| 132 | + "created_at": "2025-09-27T18:05:56.92182Z", |
| 133 | + "done": false, |
| 134 | + "done_reason": null, |
| 135 | + "total_duration": null, |
| 136 | + "load_duration": null, |
| 137 | + "prompt_eval_count": null, |
| 138 | + "prompt_eval_duration": null, |
| 139 | + "eval_count": null, |
| 140 | + "eval_duration": null, |
| 141 | + "response": "?", |
| 142 | + "thinking": null, |
| 143 | + "context": null |
| 144 | + } |
| 145 | + }, |
| 146 | + { |
| 147 | + "__type__": "ollama._types.GenerateResponse", |
| 148 | + "__data__": { |
| 149 | + "model": "llama3.2:3b-instruct-fp16", |
| 150 | + "created_at": "2025-09-27T18:05:56.963339Z", |
| 151 | + "done": true, |
| 152 | + "done_reason": "stop", |
| 153 | + "total_duration": 492973041, |
| 154 | + "load_duration": 103979375, |
| 155 | + "prompt_eval_count": 482, |
| 156 | + "prompt_eval_duration": 87032041, |
| 157 | + "eval_count": 8, |
| 158 | + "eval_duration": 300586375, |
| 159 | + "response": "", |
| 160 | + "thinking": null, |
| 161 | + "context": null |
| 162 | + } |
| 163 | + } |
| 164 | + ], |
| 165 | + "is_streaming": true |
| 166 | + } |
| 167 | +} |
0 commit comments