Skip to content

Commit 2db66e1

Browse files
Update tests/unit/test_openai_embedding.py
Co-authored-by: Bhimraj Yadav <bhimrajyadav977@gmail.com>
1 parent 53eb5b8 commit 2db66e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/test_openai_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ async def test_openai_embedding_spec_with_multi_endpoint(openai_embedding_reques
6060
async with LifespanManager(server.app) as manager, AsyncClient(
6161
transport=ASGITransport(app=manager.app), base_url="http://test"
6262
) as ac:
63-
resp = await ac.post("/v2/embeddings", json=openai_embedding_request_data, timeout=10)
63+
resp = await ac.post("/v1/embeddings", json=openai_embedding_request_data, timeout=10)
6464
assert resp.status_code == 200, "Status code should be 200"
6565
assert resp.json()["object"] == "list", "Object should be list"
6666
assert resp.json()["data"][0]["index"] == 0, "Index should be 0"

0 commit comments

Comments
 (0)