Skip to content

Commit 479f836

Browse files
committed
test: add openai api content array test case
Signed-off-by: zhengkezhou1 <[email protected]>
1 parent deccda0 commit 479f836

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/e2e/epp/e2e_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,24 @@ func verifyTrafficRouting() {
201201
{"role": "user", "content": "Now summarize your thoughts."},
202202
},
203203
},
204+
{
205+
api: "/chat/completions",
206+
promptOrMessages: []map[string]any{
207+
{
208+
"role": "user",
209+
"content": []map[string]any{
210+
{
211+
"type": "text",
212+
"text": `What's in this image?`,
213+
},
214+
{
215+
"type": "image_url",
216+
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg",
217+
},
218+
},
219+
},
220+
},
221+
},
204222
} {
205223
ginkgo.By(fmt.Sprintf("Verifying connectivity through the inference extension with %s api and prompt/messages: %v", t.api, t.promptOrMessages))
206224

0 commit comments

Comments
 (0)