I was looking through the documentation and saw that the Files section has no Python documentation but I had to dig through the openai pypi repo to see that it is in fact there.
You can see that there are copious inline examples of Python snippets to serve as a solid reference.
For instance, the “Files” section of the documentation should have something like this:
filename = 'questions.jsonl' resp = openai.File.create(purpose='fine-tune', file=open(filename))
And, ideally, this would be duplicated in the Fine Tuning documentation as well.