fix:delete the slash at the end of xinference provider server_url (#2730)

pull/2736/head
taokuizu 2 years ago committed by GitHub
parent 3a3ca8e6a9
commit 405a00bb2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -44,6 +44,9 @@ class XinferenceRerankModel(RerankModel):
docs=[]
)
if credentials['server_url'].endswith('/'):
credentials['server_url'] = credentials['server_url'][:-1]
# initialize client
client = Client(
base_url=credentials['server_url']

Loading…
Cancel
Save