Skip to content

Commit 4608a9d

Browse files
committed
test: update test_chat.hurl
Signed-off-by: Xin Liu <sam@secondstate.io>
1 parent 399e71f commit 4608a9d

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

tests/test_chat.hurl

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,46 @@ HTTP 200
55
[Asserts]
66
jsonpath "$.data[0].id" == "Qwen2-1.5B-Instruct"
77

8-
# test /v1/chat/completions endpoint
9-
POST http://localhost:8080/v1/chat/completions
10-
Accept: application/json
11-
Content-Type: application/json
12-
```json
13-
{
14-
"messages": [
15-
{
16-
"role": "user",
17-
"content": "What is the capital of France?"
18-
}
19-
],
20-
"model": "Qwen2-1.5B-Instruct",
21-
"stream": false
22-
}
23-
```
24-
HTTP 200
25-
[Asserts]
26-
jsonpath "$.model" == "Qwen2-1.5B-Instruct"
27-
jsonpath "$.choices[0].message.content" contains "Paris"
8+
# # test /v1/chat/completions endpoint
9+
# POST http://localhost:8080/v1/chat/completions
10+
# Accept: application/json
11+
# Content-Type: application/json
12+
# ```json
13+
# {
14+
# "messages": [
15+
# {
16+
# "role": "user",
17+
# "content": "What is the capital of France?"
18+
# }
19+
# ],
20+
# "model": "Qwen2-1.5B-Instruct",
21+
# "stream": false
22+
# }
23+
# ```
24+
# HTTP 200
25+
# [Asserts]
26+
# jsonpath "$.model" == "Qwen2-1.5B-Instruct"
27+
# jsonpath "$.choices[0].message.content" contains "Paris"
2828

2929

30-
# test /v1/chat/completions endpoint
31-
# Test purpose: The model name is incorrect
32-
POST http://localhost:8080/v1/chat/completions
33-
Accept: application/json
34-
Content-Type: application/json
35-
```json
36-
{
37-
"messages": [
38-
{
39-
"role": "user",
40-
"content": "What is the capital of France?"
41-
}
42-
],
43-
"model": "Qwen2-1.5B-Instruct-invalid",
44-
"stream": false
45-
}
46-
```
47-
HTTP 200
48-
[Asserts]
49-
jsonpath "$.model" == "Qwen2-1.5B-Instruct"
50-
jsonpath "$.choices[0].message.content" contains "Paris"
30+
# # test /v1/chat/completions endpoint
31+
# # Test purpose: The model name is incorrect
32+
# POST http://localhost:8080/v1/chat/completions
33+
# Accept: application/json
34+
# Content-Type: application/json
35+
# ```json
36+
# {
37+
# "messages": [
38+
# {
39+
# "role": "user",
40+
# "content": "What is the capital of France?"
41+
# }
42+
# ],
43+
# "model": "Qwen2-1.5B-Instruct-invalid",
44+
# "stream": false
45+
# }
46+
# ```
47+
# HTTP 200
48+
# [Asserts]
49+
# jsonpath "$.model" == "Qwen2-1.5B-Instruct"
50+
# jsonpath "$.choices[0].message.content" contains "Paris"

0 commit comments

Comments
 (0)