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

This commit is contained in:
taokuizu 2024-03-07 07:37:05 +00:00 committed by GitHub
parent 3a3ca8e6a9
commit 405a00bb2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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']