mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 03:29:01 +08:00
fix:delete the slash at the end of xinference provider server_url (#2730)
This commit is contained in:
parent
3a3ca8e6a9
commit
405a00bb2c
@ -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…
x
Reference in New Issue
Block a user