{ "test_id": "tests/integration/inference/test_openai_completion.py::test_openai_completion_non_streaming[txt=ollama/llama3.2:3b-instruct-fp16-inference:completion:sanity]", "request": { "method": "POST", "url": "http://0.0.0.0:11434/v1/v1/completions", "headers": {}, "body": { "model": "llama3.2:3b-instruct-fp16", "prompt": "Respond to this question and explain your answer. Complete the sentence using one word: Roses are red, violets are ", "stream": false, "extra_body": {} }, "endpoint": "/v1/completions", "model": "llama3.2:3b-instruct-fp16" }, "response": { "body": { "__type__": "openai.types.completion.Completion", "__data__": { "id": "rec-c9f153318fe6", "choices": [ { "finish_reason": "stop", "index": 0, "logprobs": null, "text": "Blue.\n\nMy answer is \"blue\" because it is a traditional completion of the classic English poem:\n\nRoses are red,\nViolets are blue.\nSugar is sweet,\nAnd so are you.\n\nThis rhyme scheme has been passed down for generations and is often used to express affection or friendship. Using the word \"blue\" is a common way to complete the poetic phrase, although other colors like purple or pink may also be used in variations of the poem." } ], "created": 0, "model": "llama3.2:3b-instruct-fp16", "object": "text_completion", "system_fingerprint": "fp_ollama", "usage": { "completion_tokens": 93, "prompt_tokens": 50, "total_tokens": 143, "completion_tokens_details": null, "prompt_tokens_details": null } } }, "is_streaming": false } }