Skip to content

Commit

Permalink
fix: add log warning back to steam
Browse files Browse the repository at this point in the history
  • Loading branch information
minaamshahid authored Oct 25, 2024
1 parent afbe27f commit b5cf856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flow_judge/models/adapters/baseten/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ async def _fetch_stream(self, request_id: str) -> str:
signature = split_chunks[2].replace("\n\n", "").split("signature=")[1]

except (json.JSONDecodeError, KeyError, IndexError) as e:
logger.warning(f"Failed to parse chunk: {e}")
raise BasetenResponseError(f"Invalid JSON response: {str(e)}") from e

if "data: eot" in decoded_chunk:
Expand Down

0 comments on commit b5cf856

Please sign in to comment.