mirror of
https://github.com/katanemo/plano.git
synced 2026-04-29 02:46:28 +02:00
Add support for json based content types in Message (#480)
This commit is contained in:
parent
f5e77bbe65
commit
218e9c540d
16 changed files with 314 additions and 121 deletions
|
|
@ -12,7 +12,7 @@ Content-Type: application/json
|
|||
HTTP 200
|
||||
[Asserts]
|
||||
header "content-type" == "application/json"
|
||||
jsonpath "$.model" matches /^o4-mini/
|
||||
jsonpath "$.model" matches /^gpt-4o/
|
||||
jsonpath "$.usage" != null
|
||||
jsonpath "$.choices[0].message.content" != null
|
||||
jsonpath "$.choices[0].message.role" == "assistant"
|
||||
|
|
|
|||
|
|
@ -13,4 +13,4 @@ Content-Type: application/json
|
|||
HTTP 200
|
||||
[Asserts]
|
||||
header "content-type" matches /text\/event-stream/
|
||||
body matches /^data: .*?o4-mini.*?\n/
|
||||
body matches /^data: .*?gpt-4o.*?\n/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue