Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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