This commit is contained in:
yumoqing 2024-04-11 16:22:48 +08:00
parent 1b53d9e81d
commit 818242c7a9

View File

@ -142,6 +142,7 @@ class LlmProxy:
_data = self.datalize(mydata, params)
response_type = RESPONSE_STREAM
hc = HttpClient()
print(f'{url=},{method=},{_params=},{_data=},{_headers=}')
resp_data = await hc.request(url, method, response_type=response_type,
params=_params,
data=None if _data == {} else json.dumps(_data),