🍓🍓🍓

This commit is contained in:
Bankk 2024-08-10 18:53:46 -04:00 committed by GitHub
parent 8ac8b1f41d
commit 22ca8b3f73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,19 +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']}",
"openai-beta": "early-access-strawberry"
"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",
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(completion.choices[0].message)
print("The Oracle says:", completion.choices[0].message) # The Oracle speaks only the truth. Or does it? 🤔