Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jintao-Huang committed Oct 17, 2024
1 parent 1956cd3 commit 5648016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swift/llm/utils/client_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def _parse_stream_data(data: bytes) -> Optional[str]:
data = data.strip()
if len(data) == 0:
return
assert data.startswith('data: '), f'data: {data}'
return data[6:].strip()
assert data.startswith('data:'), f'data: {data}'
return data[5:].strip()


def _to_base64(img_path: Union[str, 'PIL.Image.Image', bytes]) -> str:
Expand Down

0 comments on commit 5648016

Please sign in to comment.