This commit is contained in:
yumoqing 2024-04-11 18:11:12 +08:00
parent 818242c7a9
commit 1d13ff9e2f

View File

@ -39,7 +39,6 @@ class LlmProxy:
async def stream_handle(self, chunk):
chunk = chunk.decode('utf-8')
print(f'{chunk=}')
chunk = self.remain_str + chunk
lines = chunk.split('\n')
self.remain_str = lines[-1]
@ -136,7 +135,6 @@ class LlmProxy:
for p in d.get('params', {}):
myparams[p.get('name')] = p.get('value')
url = d.get('url')
print(f'show me self.data={self.data}')
_params = self.datalize(myparams, params)
_headers = self.datalize(headers, params)
_data = self.datalize(mydata, params)