This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
fix:delete the slash at the end of xinference provider server_url (
#2730
)
tags/0.5.9
taokuizu
1 year ago
parent
3a3ca8e6a9
commit
405a00bb2c
No account linked to committer's email address
1 changed files
with
3 additions
and
0 deletions
Split View
Show Diff Stats
3
0
api/core/model_runtime/model_providers/xinference/rerank/rerank.py
+ 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']
Write
Preview
Loading…
Cancel
Save