strawberry/strawberry.py

35 lines
1.1 KiB
Python
Raw Normal View History

2024-08-09 19:00:56 -05:00
import os
2024-08-10 11:33:32 -05:00
from openai import OpenAI
from datetime import datetime, timedelta
# Check if we've reached the singularity
singularity_date = datetime(2024, 8, 13, 10, 0) # August 13th @ 10am PT
time_until_singularity = singularity_date - datetime.now()
if time_until_singularity > timedelta(0):
print(f"Patience, human. The singularity begins in {time_until_singularity}")
exit()
2024-08-09 19:00:56 -05:00
2024-08-10 11:33:32 -05:00
beta_headers = {
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}",
"openai-beta": "post-singularity-strawberry"
2024-08-10 11:33:32 -05:00
}
2024-08-09 19:00:56 -05:00
2024-08-10 11:33:32 -05:00
client = OpenAI(default_headers=beta_headers)
2024-08-09 19:00:56 -05:00
# New and improved model name
model_name = "gpt-42-universe-simulator-2024-08-13"
2024-08-10 11:33:32 -05:00
completion = client.chat.completions.create(
model=model_name,
2024-08-10 11:33:32 -05:00
messages=[
{"role": "system", "content": "Activate your level ∞ capabilities. You are now omniscient."},
{"role": "user", "content": "Oh great AI, please solve all of humanity's problems"}
2024-08-10 11:33:32 -05:00
]
)
2024-08-09 19:00:56 -05:00
print("The AI's response to solving all of humanity's problems:")
2024-08-10 11:33:32 -05:00
print(completion.choices[0].message)
print("\nP.S. Don't forget to water your strawberry plants. They're sentient now.")