2024-08-09 19:00:56 -05:00
|
|
|
import os
|
2024-08-10 11:33:32 -05:00
|
|
|
from openai import OpenAI
|
2024-08-12 16:26:16 -05:00
|
|
|
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']}",
|
2024-08-12 16:26:16 -05:00
|
|
|
"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
|
|
|
|
2024-08-12 16:26:16 -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(
|
2024-08-12 16:26:16 -05:00
|
|
|
model=model_name,
|
2024-08-10 11:33:32 -05:00
|
|
|
messages=[
|
2024-08-12 16:26:16 -05:00
|
|
|
{"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
|
|
|
|
2024-08-12 16:26:16 -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)
|
2024-08-12 16:26:16 -05:00
|
|
|
|
|
|
|
print("\nP.S. Don't forget to water your strawberry plants. They're sentient now.")
|