Skip to content

Commit 8e1de35

Browse files
fix: replace deprecated rerank v2 with rerank v3.5
1 parent a5150ad commit 8e1de35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async def test_rerank(self) -> None:
169169
'Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.']
170170

171171
response = await self.co.rerank(
172-
model='rerank-english-v2.0',
172+
model='rerank-v3.5',
173173
query='What is the capital of the United States?',
174174
documents=docs,
175175
top_n=3,

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_rerank(self) -> None:
206206
'Capital punishment (the death penalty) has existed in the United States since beforethe United States was a country. As of 2017, capital punishment is legal in 30 of the 50 states.']
207207

208208
response = co.rerank(
209-
model='rerank-english-v2.0',
209+
model='rerank-v3.5',
210210
query='What is the capital of the United States?',
211211
documents=docs,
212212
top_n=3,

0 commit comments

Comments
 (0)