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

BRING BACK 🍓🍓🍓 #1

Open
wants to merge 3 commits 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
21 changes: 21 additions & 0 deletions strawberry.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
from openai import OpenAI

# 🍓🍓🍓 WARNING: This code is powered by strawberries. Proceed at your own risk.

beta_headers = {
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}", # Because who doesn't like bears? 🐻
"openai-beta": "early-access-strawberry" # Strawberries make everything better 🍓🍓🍓
}

client = OpenAI(default_headers=beta_headers)

completion = client.chat.completions.create(
model="gpt-4o-large-2024-08-13", # Apparently this model is large. Like, super large. 🐘
messages=[
{"role": "system", "content": "use your level two capabilities"},
{"role": "user", "content": "give us ubi"}
]
)

print("The Oracle says:", completion.choices[0].message) # The Oracle speaks only the truth. Or does it? 🤔