Skip to content

Commit c11d8a3

Browse files
Fix E2E embedding tests to use correct API endpoint
Use /v1/embeddings instead of /embeddings to get correct response format with 'data' field. The non-v1 endpoint returns a different structure. Co-Authored-By: Alex Peng <[email protected]>
1 parent 34104f8 commit c11d8a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/server/tests/e2e/test_concurrent_scenarios.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def test_concurrent_embeddings(pipeline_process, e2e_embedding_model_config):
252252
tasks = [
253253
(
254254
pipeline_process.make_request,
255-
("POST", "/embeddings", {
255+
("POST", "/v1/embeddings", {
256256
"input": text,
257257
})
258258
)

tools/server/tests/e2e/test_pipeline_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def test_pipeline_with_embedding_model(pipeline_process, e2e_embedding_model_con
202202

203203
pipeline_process.start()
204204

205-
res = pipeline_process.make_request("POST", "/embeddings", data={
205+
res = pipeline_process.make_request("POST", "/v1/embeddings", data={
206206
"input": "Hello, world!",
207207
})
208208

0 commit comments

Comments
 (0)