Iam getting an error like this
openai.InternalServerError: Error code: 503 - {'error': {'code': 503, 'message': 'Service Unavailable.', 'param': None, 'type': 'cf_service_unavailable'}}
import openai
openai.api_key = 'My api key'
# client = openai.api_key
# Replace 'file_path_to_your_jsonl_file' with the path to your .jsonl file
response = openai.files.create(
file=open('train.jsonl', "rb"),
purpose='fine-tune'
)
print(response)
@rohancalum any updates on this
I’m facing this issue too 
what to do now???. will they solve the issue after some time
Instability on this was officially reported yesterday … work must be ongoing
But it was working in the morning.How much time does it usually take to address the issue
It was supposedly resolved a few hours ago but maybe issues have since resurfaced.
Nothing new on https://status.openai.com/ as of now but you might want to keep an eye on that.
1 Like
while file tune model using
from openai import OpenAI
import json
import openai
import os
import pandas as pd
from pprint import pprint
client = openai.OpenAI(api_key=os.environ.get(“OPENAI_API_KEY”))
Upload Training and Validation Files
training_file = client.files.create(
file=open(training_file_name, “rb”), purpose=“fine-tune”
)
validation_file = client.files.create(
file=open(validation_file_name, “rb”), purpose=“fine-tune”
)
print(“Training file ID:”, training_file.id)
print(“Validation file ID:”, validation_file.id)
error gets like