From c4137a9eab6c10f74c9c04cb845ab4ef2ffe117c Mon Sep 17 00:00:00 2001 From: nsde Date: Wed, 23 Aug 2023 23:30:55 +0200 Subject: [PATCH] Auto-trigger - Production server started --- api/streaming.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/streaming.py b/api/streaming.py index 5f55e24..6077a8d 100644 --- a/api/streaming.py +++ b/api/streaming.py @@ -119,6 +119,7 @@ async def stream( raise ValueError(f'Proxy {response.text()} is transparent!') except Exception as exc: + print(f'[!] proxy {proxies.get_proxy()} error - ({type(exc)} {exc})') continue try: @@ -162,7 +163,6 @@ async def stream( model=model, target_request=target_request ): - print(f'[STREAM] {chunk}') yield chunk break @@ -175,8 +175,6 @@ async def stream( print('[!] aiohttp came up with a dumb excuse to not work again ("cOnNeCtIoN rEsEt")') continue - print(f'[STREAM] {json_response}') - if is_chat and is_stream: yield await chat.create_chat_chunk(chat_id=chat_id, model=model, content=chat.CompletionStop) yield 'data: [DONE]\n\n'