Skip to content

Commit

Permalink
Merge pull request #2671 from Parthsadaria/patch-1
Browse files Browse the repository at this point in the history
Update PerplexityLabs.py
  • Loading branch information
hlohaus authored Feb 2, 2025
2 parents 67b44fd + d0e80e5 commit 50afc23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions g4f/Provider/PerplexityLabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@ async def create_async_generator(
if data["final"]:
yield FinishReason("stop")
break
except:
raise RuntimeError(f"Message: {message}")
except Exception as e:
print(f"Error processing message: {message} - {e}")
raise RuntimeError(f"Message: {message}") from e

0 comments on commit 50afc23

Please sign in to comment.