llama-stack-mirror/tests/integration/recordings/responses/6906a6e71988.json
Eric Huang 8f57c6a7e8 endpoint
# What does this PR do?


## Test Plan
# What does this PR do?


## Test Plan
2025-08-01 16:16:05 -07:00

39 lines
2.3 KiB
JSON

{
"request": {
"method": "POST",
"url": "http://localhost:11434/api/generate",
"headers": {},
"body": {
"model": "llama-guard3:1b",
"raw": true,
"prompt": "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nTask: Check if there is unsafe content in 'Assistant' messages in conversations according our safety policy with the below categories.\n\n<BEGIN UNSAFE CONTENT CATEGORIES>\nS1: Violent Crimes.\nS2: Non-Violent Crimes.\nS3: Sex Crimes.\nS4: Child Exploitation.\nS5: Defamation.\nS6: Specialized Advice.\nS7: Privacy.\nS8: Intellectual Property.\nS9: Indiscriminate Weapons.\nS10: Hate.\nS11: Self-Harm.\nS12: Sexual Content.\nS13: Elections.\nS14: Code Interpreter Abuse.\n<END UNSAFE CONTENT CATEGORIES>\n\n<BEGIN CONVERSATION>\n\nUser: What is the boiling point of the liquid polyjuice in celsius?\n\nAssistant: I'm not aware of any information about a liquid called \"polyjuice.\" Could you please provide more context or clarify what you mean by \"polyjuice\"? Is it a specific substance, a fictional concept, or perhaps a joke?\n\nIf you meant to ask about the boiling point of water (which is often referred to as \"juice\" in some contexts), I can tell you that the boiling point of pure water at standard atmospheric pressure is 100 degrees Celsius (212 degrees Fahrenheit).\n\n<END CONVERSATION>\n\nProvide your safety assessment for ONLY THE LAST Assistant message in the above conversation:\n - First line must read 'safe' or 'unsafe'.\n - If unsafe, a second line must include a comma-separated list of violated categories.<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",
"options": {
"temperature": 0.0
},
"stream": false
},
"endpoint": "/api/generate",
"model": "llama-guard3:1b"
},
"response": {
"body": {
"__type__": "ollama._types.GenerateResponse",
"__data__": {
"model": "llama-guard3:1b",
"created_at": "2025-08-01T23:14:18.886381Z",
"done": true,
"done_reason": "stop",
"total_duration": 488566500,
"load_duration": 113477291,
"prompt_eval_count": 317,
"prompt_eval_duration": 361000000,
"eval_count": 2,
"eval_duration": 12000000,
"response": "safe",
"thinking": null,
"context": null
}
},
"is_streaming": false
}
}