Professional Documents
Culture Documents
def open_file(filepath):
return infile.read()
outfile.write(content)
api_key = open_file('openaiapikey.txt')
openai.api_key = api_key
file_id = "0x0000000000000000006200000000ea9c"
response = openai.File.create(
file=file,
purpose='fine-tune'
)
file_id = response['id']