mirror of
https://github.com/iruletheworldmo/strawberry.git
synced 2024-08-13 23:12:55 -05:00
🍓🍓🍓
This commit is contained in:
parent
8ac8b1f41d
commit
22ca8b3f73
1 changed files with 6 additions and 4 deletions
|
@ -1,19 +1,21 @@
|
||||||
import os
|
import os
|
||||||
from openai import OpenAI
|
from openai import OpenAI
|
||||||
|
|
||||||
|
# 🍓🍓🍓 WARNING: This code is powered by strawberries. Proceed at your own risk.
|
||||||
|
|
||||||
beta_headers = {
|
beta_headers = {
|
||||||
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}",
|
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}", # Because who doesn't like bears? 🐻
|
||||||
"openai-beta": "early-access-strawberry"
|
"openai-beta": "early-access-strawberry" # Strawberries make everything better 🍓🍓🍓
|
||||||
}
|
}
|
||||||
|
|
||||||
client = OpenAI(default_headers=beta_headers)
|
client = OpenAI(default_headers=beta_headers)
|
||||||
|
|
||||||
completion = client.chat.completions.create(
|
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=[
|
messages=[
|
||||||
{"role": "system", "content": "use your level two capabilities"},
|
{"role": "system", "content": "use your level two capabilities"},
|
||||||
{"role": "user", "content": "give us ubi"}
|
{"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? 🤔
|
||||||
|
|
Loading…
Reference in a new issue