forked from phoenix/litellm-mirror
test: fix test
This commit is contained in:
parent
b5c5f87e25
commit
88db948d29
1 changed files with 4 additions and 1 deletions
|
@ -215,7 +215,10 @@ async def test_rerank_custom_api_base():
|
||||||
args_to_api = kwargs["json"]
|
args_to_api = kwargs["json"]
|
||||||
print("Arguments passed to API=", args_to_api)
|
print("Arguments passed to API=", args_to_api)
|
||||||
print("url = ", _url)
|
print("url = ", _url)
|
||||||
assert _url[0] == "https://exampleopenaiendpoint-production.up.railway.app/"
|
assert (
|
||||||
|
_url[0]
|
||||||
|
== "https://exampleopenaiendpoint-production.up.railway.app/v1/rerank"
|
||||||
|
)
|
||||||
assert args_to_api == expected_payload
|
assert args_to_api == expected_payload
|
||||||
assert response.id is not None
|
assert response.id is not None
|
||||||
assert response.results is not None
|
assert response.results is not None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue