Skip to content

Instantly share code, notes, and snippets.

View physics1514's full-sized avatar

phyxcz physics1514

View GitHub Profile
import random
import string
import requests
import openai
openai.api_key = ''
def generate_random_key():
random_string = ''.join(random.choices(string.ascii_letters + string.digits, k=44))
return f"sk-{random_string}"