Skip to content

Commit 3ab37df

Browse files
committed
fix(tokenizer): ensure bytes return type in local tokenizer loader
1 parent c988339 commit 3ab37df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎google/genai/_local_tokenizer_loader.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def _load_file(file_url_path: str) -> bytes:
8080
"""Loads file bytes from the given file url path."""
8181
resp = requests.get(file_url_path)
8282
resp.raise_for_status()
83-
return resp.content
83+
return bytes(resp.content)
8484

8585

8686
def _is_valid_model(*, model_data: bytes, expected_hash: str) -> bool:

0 commit comments

Comments
 (0)