diff --git a/demos/use_cases/preference_based_routing/hurl_tests/simple.hurl b/demos/use_cases/preference_based_routing/hurl_tests/simple.hurl new file mode 100644 index 00000000..9cc0448a --- /dev/null +++ b/demos/use_cases/preference_based_routing/hurl_tests/simple.hurl @@ -0,0 +1,18 @@ +POST http://localhost:9090/v1/chat/completions +Content-Type: application/json + +{ + "messages": [ + { + "role": "user", + "content": "I am running under debt, how should I keep a tab on my expenses?" + } + ] +} +HTTP 200 +[Asserts] +header "content-type" == "application/json" +jsonpath "$.model" matches /^o4-mini/ +jsonpath "$.usage" != null +jsonpath "$.choices[0].message.content" != null +jsonpath "$.choices[0].message.role" == "assistant" diff --git a/demos/use_cases/preference_based_routing/hurl_tests/simple_stream.hurl b/demos/use_cases/preference_based_routing/hurl_tests/simple_stream.hurl new file mode 100644 index 00000000..a38b8645 --- /dev/null +++ b/demos/use_cases/preference_based_routing/hurl_tests/simple_stream.hurl @@ -0,0 +1,16 @@ +POST http://localhost:9090/v1/chat/completions +Content-Type: application/json + +{ + "messages": [ + { + "role": "user", + "content": "I am running under debt, how should I keep a tab on my expenses?" + } + ], + "stream": true +} +HTTP 200 +[Asserts] +header "content-type" matches /text\/event-stream/ +body matches /^data: .*?o4-mini.*?\n/