We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3e8a05 commit 26e1188Copy full SHA for 26e1188
vllm/entrypoints/openai/run_batch.py
@@ -58,7 +58,7 @@ async def read_file(path_or_url: str) -> str:
58
session.get(path_or_url) as resp:
59
return await resp.text()
60
else:
61
- with open(path_or_url, "r") as f:
+ with open(path_or_url, "r", encoding="utf-8") as f:
62
return f.read()
63
64
@@ -71,7 +71,7 @@ async def write_file(path_or_url: str, data: str) -> None:
71
# We should make this async, but as long as this is always run as a
72
# standalone program, blocking the event loop won't effect performance
73
# in this particular case.
74
- with open(path_or_url, "w") as f:
+ with open(path_or_url, "w", encoding="utf-8") as f:
75
f.write(data)
76
77
0 commit comments