diff --git a/main.py b/main.py index 419fea2..e13cffa 100644 --- a/main.py +++ b/main.py @@ -148,6 +148,7 @@ async def refresh_token(self, force: bool = False) -> bool: # Try to acquire lock for refresh once if not await self.acquire_lock(): logging.info("Another process is refreshing, waiting for token update") + await asyncio.sleep(5) # Failed to acquire lock, wait for token to be updated by file watcher return False @@ -543,7 +544,6 @@ async def convert_stream_response_openai_to_anthropic(chunk: str): return try: body = json.loads(chunk) - logging.info(f"Parsed chunk: {body}") if "error" in body: data = json.dumps( {