revert: 🐛 revert unecessary changes from yesterday
This commit is contained in:
parent
e608522be7
commit
3629dddb1d
3 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ uvicorn==0.21.1
|
|||
python-dotenv==1.0.0
|
||||
nest-asyncio==1.5.6
|
||||
websockets==11.0.2
|
||||
urllib3==1.25.11 # Locked to this version per: https://github.com/Significant-Gravitas/Auto-GPT/issues/1909
|
||||
urllib3==1.26.15
|
||||
posthog==3.0.1
|
||||
tiktoken==0.4.0
|
||||
jsonref==1.1.0
|
||||
|
|
|
|||
|
|
@ -59,12 +59,12 @@ class GUIProtocolServer(AbstractGUIProtocolServer):
|
|||
"data": data
|
||||
})
|
||||
|
||||
async def _receive_json(self, message_type: str, timeout: int = 10) -> Any:
|
||||
async def _receive_json(self, message_type: str, timeout: int = 20) -> Any:
|
||||
try:
|
||||
return await asyncio.wait_for(self.sub_queue.get(message_type), timeout=timeout)
|
||||
except asyncio.TimeoutError:
|
||||
raise Exception(
|
||||
"GUI Protocol _receive_json timed out after 10 seconds")
|
||||
"GUI Protocol _receive_json timed out after 20 seconds")
|
||||
|
||||
async def _send_and_receive_json(self, data: Any, resp_model: Type[T], message_type: str) -> T:
|
||||
await self._send_json(message_type, data)
|
||||
|
|
|
|||
|
|
@ -165,12 +165,12 @@ class IdeProtocolServer(AbstractIdeProtocolServer):
|
|||
"data": data
|
||||
})
|
||||
|
||||
async def _receive_json(self, message_type: str, timeout: int = 10) -> Any:
|
||||
async def _receive_json(self, message_type: str, timeout: int = 20) -> Any:
|
||||
try:
|
||||
return await asyncio.wait_for(self.sub_queue.get(message_type), timeout=timeout)
|
||||
except asyncio.TimeoutError:
|
||||
raise Exception(
|
||||
f"IDE Protocol _receive_json timed out after 10 seconds: {message_type}")
|
||||
f"IDE Protocol _receive_json timed out after 20 seconds: {message_type}")
|
||||
|
||||
async def _send_and_receive_json(self, data: Any, resp_model: Type[T], message_type: str) -> T:
|
||||
await self._send_json(message_type, data)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue