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

Read the OpenAI API key from environment variable OPENAI_API_KEY #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion o1-eng.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

MODEL = "o1-mini"
# Initialize OpenAI client
client = OpenAI(api_key="YOUR KEY")
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))


CREATE_SYSTEM_PROMPT = """You are an advanced o1 engineer designed to create files and folders based on user instructions. Your primary objective is to generate the content of the files to be created as code blocks. Each code block should specify whether it's a file or folder, along with its path.
Expand Down