{ "request": { "method": "POST", "url": "http://0.0.0.0:11434/v1/v1/completions", "headers": {}, "body": { "model": "llama3.2:3b-instruct-fp16", "messages": [ { "role": "user", "content": "What's the weather in Tokyo? YOU MUST USE THE get_weather function to get the weather." } ], "response_format": { "type": "text" }, "stream": true, "tools": [ { "function": { "name": "get_weather", "description": "Get the weather in a given city", "parameters": { "type": "object", "properties": { "city": { "type": "string", "description": "The city to get the weather for" } } }, "strict": null }, "type": "function" } ] }, "endpoint": "/v1/completions", "model": "llama3.2:3b-instruct-fp16" }, "response": { "body": [ { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-92", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": [ { "index": 0, "id": "call_ygt6yxij", "function": { "arguments": "{\"city\":\"Tokyo\"}", "name": "get_weather" }, "type": "function" } ] }, "finish_reason": null, "index": 0, "logprobs": null } ], "created": 1753984138, "model": "llama3.2:3b-instruct-fp16", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": "fp_ollama", "usage": null } }, { "__type__": "openai.types.chat.chat_completion_chunk.ChatCompletionChunk", "__data__": { "id": "chatcmpl-92", "choices": [ { "delta": { "content": "", "function_call": null, "refusal": null, "role": "assistant", "tool_calls": null }, "finish_reason": "tool_calls", "index": 0, "logprobs": null } ], "created": 1753984138, "model": "llama3.2:3b-instruct-fp16", "object": "chat.completion.chunk", "service_tier": null, "system_fingerprint": "fp_ollama", "usage": null } } ], "is_streaming": true } }