You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The OpenAI Assistant has generated a CSV file. When I attempt to retrieve its contents with openai_client.files.content(id: 'file_id') it generates the error unexpected character (after [0]) at line 1, column 2 [parse.c:744] which appears to be the JSON parser trying to parse CSV content.
To Reproduce
openai_client.files.retrieve id: "file-NexuEUjWpoehzmkQ5zer7W"
{"object"=>"file",
"id"=>"file-NexuEUjWpoehzmkQ5zer7W",
"purpose"=>"assistants_output",
"filename"=>"/mnt/data/normalized_file.csv",
"bytes"=>1630,
"created_at"=>1738176534,
"status"=>"processed",
"status_details"=>nil}
openai_client.files.content id: "file-NexuEUjWpoehzmkQ5zer7W"
: unexpected character (after [0]) at line 1, column 2 [parse.c:744]
Expected behavior
The CSV file contents are able to be read without error.
Desktop (please complete the following information):
OS: macOS 15.2
Ruby version: 3.2.2
Gem version: 7.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
The OpenAI Assistant has generated a CSV file. When I attempt to retrieve its contents with
openai_client.files.content(id: 'file_id')
it generates the errorunexpected character (after [0]) at line 1, column 2 [parse.c:744]
which appears to be the JSON parser trying to parse CSV content.To Reproduce
Expected behavior
The CSV file contents are able to be read without error.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: