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
pip install --user openai[datalib]==0.26.4
# Works fine:echo'[{"prompt": "Here is my example input 1", "completion": "Complete to 1"}, {"prompt": "Here is my example input 2", "completion": "Complete to 2"}]'> unindented.json
openai tools fine_tunes.prepare_data --quiet --file unindented.json
# Doesn't work:
cat > to_indented.py <<EOFimport jsonwith open('unindented.json', 'rt') as f: data = json.loads(f.read())# Simple rewrite of the "unindented.json": output to indented versionwith open('indented', 'wt') as f: f.write(json.dumps(data, indent=2))EOF
python to_indented.py
openai tools fine_tunes.prepare_data -f indented.json