Skip to content

OAI updated it's Python SDK, so updating FT script to reflect those changes#23

Open
zkoch wants to merge 1 commit intomainfrom
zkoch/fix
Open

OAI updated it's Python SDK, so updating FT script to reflect those changes#23
zkoch wants to merge 1 commit intomainfrom
zkoch/fix

Conversation

@zkoch
Copy link

@zkoch zkoch commented Jan 11, 2024

No description provided.

@zkoch zkoch requested a review from juberti January 11, 2024 16:33
openai.api_key = os.getenv("OPENAI_API_KEY")
training_file = "/Users/juberti/Downloads/pirate_tune.jsonl"
training_file_response = openai.File.create(
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just do openai.OpenAI here rather than importing the type directly

training_file_response = openai.File.create(
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))

training_file = "/Users/zachkoch/Downloads/GPT3_5_complete_fine_tuning_examples.jsonl"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get this from sys.argv[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants