Unverified Commit 405a00bb authored by taokuizu's avatar taokuizu Committed by GitHub

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

parent 3a3ca8e6
......@@ -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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment