mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 09:21:22 +00:00
refac
This commit is contained in:
parent
7b5a7f4a98
commit
da9bca0fcb
1 changed files with 1 additions and 1 deletions
|
|
@ -551,7 +551,7 @@ class RelayClient:
|
|||
query += ('&' if query else '') + urlencode(kwargs['params'], doseq=True)
|
||||
stream = await hub.open(self.user_id, parsed.hostname, self.service)
|
||||
body = kwargs.get('data')
|
||||
if 'json' in kwargs:
|
||||
if kwargs.get('json') is not None:
|
||||
body = json.dumps(kwargs['json']).encode()
|
||||
headers['Content-Type'] = 'application/json'
|
||||
if isinstance(body, aiohttp.FormData):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue