mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 16:56:24 +02:00
24 lines
521 B
Text
24 lines
521 B
Text
POST http://localhost:12000/v1/chat/completions
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"messages": [
|
|
{
|
|
"role": "system",
|
|
"content": "You are a helpful assistant.\n"
|
|
},
|
|
{
|
|
"role": "user",
|
|
"content": "I want to sell red shoes"
|
|
}
|
|
],
|
|
"stream": false
|
|
}
|
|
|
|
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"
|