Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/openai/lib/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def read_any_format(
elif fname.lower().endswith(".txt"):
immediate_msg = "\n- Based on your file extension, you provided a text file"
necessary_msg = "Your format `TXT` will be converted to `JSONL`"
with open(fname, "r") as f:
with open(fname, "r", encoding="utf-8") as f:
content = f.read()
df = pd.DataFrame(
[["", line] for line in content.split("\n")],
Expand Down