Unable to use attribute 'Dataset' with openAI therefore unable to create dataset to be uploaded

I have been trying to use ‘Dataset’ attribute in the openAI module to create a dataset that can be used to uplaod at OpenAI and used for finetuning. But it is continuously showing th error- AttributeError: module ‘openai’ has no attribute ‘Dataset’. I have tried to update openAI to the latest version which coming as 0.27.6 and I don’t know how to update it to the latest version. The version of my openAI is 0.27.6.

Kinldy help me out in how to make it work as I am new to working with openAI APIs.

There is no Dataset atribute in openai - the attributes are:

  • api_key
  • Model
  • Completion
  • File
  • Organization
  • Usage
  • ListRequest
  • RequestError

In your case, you must use File instead Dataset.
I hope this helps.