Browse Source

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

tags/0.5.9
taokuizu 1 year ago
parent
commit
405a00bb2c
No account linked to committer's email address

+ 3
- 0
api/core/model_runtime/model_providers/xinference/rerank/rerank.py 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']

Loading…
Cancel
Save