mirror of
https://github.com/iruletheworldmo/strawberry.git
synced 2024-08-13 23:12:55 -05:00
big week
This commit is contained in:
parent
53b3b7fdfc
commit
8ac8b1f41d
1 changed files with 14 additions and 42 deletions
|
@ -1,47 +1,19 @@
|
||||||
import os
|
import os
|
||||||
import time
|
from openai import OpenAI
|
||||||
|
|
||||||
YELLOW = '\033[93m'
|
beta_headers = {
|
||||||
BROWN = '\033[38;5;52m'
|
"authorization": f"Bearer {os.environ['OPENAI_BETA_KEY']}",
|
||||||
RESET = '\033[0m'
|
"openai-beta": "early-access-strawberry"
|
||||||
|
}
|
||||||
|
|
||||||
def garden(sub_stage=0):
|
client = OpenAI(default_headers=beta_headers)
|
||||||
frame = [
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
f"{BROWN}~~~~~~~~~~~~~~~~{RESET}",
|
|
||||||
f"{BROWN}################{RESET}",
|
|
||||||
f"{BROWN}################{RESET}",
|
|
||||||
f"{BROWN}################{RESET}",
|
|
||||||
f"{BROWN}################{RESET}",
|
|
||||||
f"{BROWN}################{RESET}"
|
|
||||||
]
|
|
||||||
|
|
||||||
if sub_stage < 4:
|
|
||||||
frame[sub_stage] = f" {YELLOW}(q*){RESET} "
|
|
||||||
elif sub_stage == 4:
|
|
||||||
frame[4] = f"{BROWN}~~~~~~{YELLOW}(q*){BROWN}~~~~~~{RESET}"
|
|
||||||
elif sub_stage == 5:
|
|
||||||
frame[5] = f"{BROWN}######{YELLOW}(q*){BROWN}######{RESET}"
|
|
||||||
elif sub_stage == 6:
|
|
||||||
frame[6] = f"{BROWN}######{YELLOW}(q*){BROWN}######{RESET}"
|
|
||||||
elif sub_stage == 7:
|
|
||||||
frame[7] = f"{BROWN}######{YELLOW}(q*){BROWN}######{RESET}"
|
|
||||||
|
|
||||||
return "\n".join(frame)
|
|
||||||
|
|
||||||
def delicious():
|
completion = client.chat.completions.create(
|
||||||
while True:
|
model="gpt-4o-large-2024-08-13",
|
||||||
for i in range(8):
|
messages=[
|
||||||
os.system('cls' if os.name == 'nt' else 'clear')
|
{"role": "system", "content": "use your level two capabilities"},
|
||||||
print(garden(i))
|
{"role": "user", "content": "give us ubi"}
|
||||||
time.sleep(0.5)
|
]
|
||||||
time.sleep(1)
|
)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
print(completion.choices[0].message)
|
||||||
try:
|
|
||||||
delicious()
|
|
||||||
except KeyboardInterrupt:
|
|
||||||
print("\nAnimation stopped.")
|
|
||||||
|
|
Loading…
Reference in a new issue