-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ERROR in ready_any_format validator: file does not appear to be in valid JSON Format #296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Interesting, i saw on a deep thread somewhere where they downgraded their openai-CLI version to v0.25.x and it worked. Uninstalled it and installed it with pip3 specifying that version and it worked! Anyone else have this issue? is this a complication with my python3 / pip3 versions? would love to know |
I'm seeing this issue as well EDIT: Downgrading to 0.25 worked for me |
Thanks Leo it worked for me too! for Downgrading: pip install openai==0.25.0 |
awesome! I'm curious as to why no one has addressed this issue yet |
Even after downgrading to version 0.25.0 this problem hasn't gone away for me and now the error message is slightly different
it says "does not exist" rather than "does not appear to be in valid JSON format. Please ensure your file is formatted as a valid JSON file." any help would be appreciated |
Downgrading worked for me thank you |
Hi @rmajidy, Any chance you have a sample file I could use to replicate this issue? |
Thank you! |
I'm guessing the issue was from a regression fixed in #389. Since that's merged, closing this |
Describe the bug
When I try to use the prepare data tool for fine tuning I always get the following error that i'm not using a valid JSON file. I have even used a valid JSON validator which comes back as valid. I have a feeling this has to do with my environment more than anything.
from my understanding this tool accepts any data format, even JSON to convert to JSONL
I'm new to python so please excuse my lack of experience with the language.
I even installed it with just
pip install openai
and still had no luck. along with this I tried using python with pyenv but still had no luck.And again i'm new to programming so this is one of my first ever big reports, sorry if it's not in the right format if you will
To Reproduce
Latest version of python3 was installed using home brew with
brew install python
pip3 install openai
export OPENAI_API_KEY="<OPENAI_API_KEY>"
openai tools fine_tunes.prepare_data -f <LOCAL_FILE>
pip v23.0.1
Code snippets
OS
macOS Ventura v13.0.1
Python version
Python 3.11.2
Library version
openai-0.27.1
The text was updated successfully, but these errors were encountered: