diff --git a/tests/integration/recordings/responses/2d1c70eff850.json b/tests/integration/recordings/responses/2d1c70eff850.json new file mode 100644 index 000000000..691660c97 --- /dev/null +++ b/tests/integration/recordings/responses/2d1c70eff850.json @@ -0,0 +1,56 @@ +{ + "request": { + "method": "POST", + "url": "http://0.0.0.0:11434/v1/v1/chat/completions", + "headers": {}, + "body": { + "model": "llama3.2:3b-instruct-fp16", + "messages": [ + { + "role": "user", + "content": "Humans live on which planet: Mars, Venus, or Earth?" + } + ], + "stream": false + }, + "endpoint": "/v1/chat/completions", + "model": "llama3.2:3b-instruct-fp16" + }, + "response": { + "body": { + "__type__": "openai.types.chat.chat_completion.ChatCompletion", + "__data__": { + "id": "chatcmpl-179", + "choices": [ + { + "finish_reason": "stop", + "index": 0, + "logprobs": null, + "message": { + "content": "The answer is Earth. Humans live on this planet, which is the third planet from the Sun and the only known habitable world in our solar system with conditions suitable for human life.", + "refusal": null, + "role": "assistant", + "annotations": null, + "audio": null, + "function_call": null, + "tool_calls": null + } + } + ], + "created": 1758618369, + "model": "llama3.2:3b-instruct-fp16", + "object": "chat.completion", + "service_tier": null, + "system_fingerprint": "fp_ollama", + "usage": { + "completion_tokens": 38, + "prompt_tokens": 38, + "total_tokens": 76, + "completion_tokens_details": null, + "prompt_tokens_details": null + } + } + }, + "is_streaming": false + } +} diff --git a/tests/integration/recordings/responses/c77313b79660.json b/tests/integration/recordings/responses/c77313b79660.json new file mode 100644 index 000000000..92f83e235 --- /dev/null +++ b/tests/integration/recordings/responses/c77313b79660.json @@ -0,0 +1,39 @@ +{ + "request": { + "method": "POST", + "url": "http://localhost:11434/api/generate", + "headers": {}, + "body": { + "model": "llama3.2:3b-instruct-fp16", + "raw": true, + "prompt": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\n<|eot_id|><|start_header_id|>user<|end_header_id|>\n\nHumans live on which planet: Mars, Venus, or Earth?<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n", + "options": { + "temperature": 0.0 + }, + "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-09-23T08:50:21.049688857Z", + "done": true, + "done_reason": "stop", + "total_duration": 18511252772, + "load_duration": 47879633, + "prompt_eval_count": 29, + "prompt_eval_duration": 2305573657, + "eval_count": 90, + "eval_duration": 16157220042, + "response": "Humans do not currently live on any of these planets. Humans are native to the planet Earth.\n\nMars is a rocky planet in our solar system that has been explored by several robotic spacecraft, but it does not have an atmosphere suitable for human habitation.\n\nVenus is also a rocky planet with a thick atmosphere, but its surface temperature is extremely hot and hostile to humans.\n\nEarth is the only known planet in the universe where humans can live.", + "thinking": null, + "context": null + } + }, + "is_streaming": false + } +}