bugfix
This commit is contained in:
parent
818242c7a9
commit
1d13ff9e2f
@ -39,7 +39,6 @@ class LlmProxy:
|
|||||||
|
|
||||||
async def stream_handle(self, chunk):
|
async def stream_handle(self, chunk):
|
||||||
chunk = chunk.decode('utf-8')
|
chunk = chunk.decode('utf-8')
|
||||||
print(f'{chunk=}')
|
|
||||||
chunk = self.remain_str + chunk
|
chunk = self.remain_str + chunk
|
||||||
lines = chunk.split('\n')
|
lines = chunk.split('\n')
|
||||||
self.remain_str = lines[-1]
|
self.remain_str = lines[-1]
|
||||||
@ -136,7 +135,6 @@ class LlmProxy:
|
|||||||
for p in d.get('params', {}):
|
for p in d.get('params', {}):
|
||||||
myparams[p.get('name')] = p.get('value')
|
myparams[p.get('name')] = p.get('value')
|
||||||
url = d.get('url')
|
url = d.get('url')
|
||||||
print(f'show me self.data={self.data}')
|
|
||||||
_params = self.datalize(myparams, params)
|
_params = self.datalize(myparams, params)
|
||||||
_headers = self.datalize(headers, params)
|
_headers = self.datalize(headers, params)
|
||||||
_data = self.datalize(mydata, params)
|
_data = self.datalize(mydata, params)
|
||||||
|
Loading…
Reference in New Issue
Block a user