From 22ca8b3f7333859971aefee29490dd286274ab6b Mon Sep 17 00:00:00 2001 From: Bankk <106103625+BankkRoll@users.noreply.github.com> Date: Sat, 10 Aug 2024 18:53:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=93=F0=9F=8D=93=F0=9F=8D=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- strawberry.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/strawberry.py b/strawberry.py index fc0a9de..cae18f0 100644 --- a/strawberry.py +++ b/strawberry.py @@ -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? 🤔