2025-03-21 15:56:17 -07:00
|
|
|
POST http://localhost:12000/v1/chat/completions
|
2025-03-19 15:21:34 -07:00
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
"messages": [
|
2025-03-21 15:56:17 -07:00
|
|
|
{
|
|
|
|
|
"role": "system",
|
|
|
|
|
"content": "You are a helpful assistant.\n"
|
|
|
|
|
},
|
2025-03-19 15:21:34 -07:00
|
|
|
{
|
|
|
|
|
"role": "user",
|
|
|
|
|
"content": "I want to sell red shoes"
|
|
|
|
|
}
|
2025-03-21 15:56:17 -07:00
|
|
|
],
|
|
|
|
|
"stream": false
|
2025-03-19 15:21:34 -07:00
|
|
|
}
|
2025-03-21 15:56:17 -07:00
|
|
|
|
2025-03-19 15:21:34 -07:00
|
|
|
HTTP 200
|
|
|
|
|
[Asserts]
|
|
|
|
|
header "content-type" == "application/json"
|
|
|
|
|
jsonpath "$.model" matches /^gpt-4o-mini/
|
|
|
|
|
jsonpath "$.usage" != null
|
|
|
|
|
jsonpath "$.choices[0].message.content" != null
|
|
|
|
|
jsonpath "$.choices[0].message.role" == "assistant"
|