The Official ChatGPT site site was lagging so I created a python version using openAI's python library. You write a prompt and it gives you the AI's response.
import openai
# API key from OpenAI account (testkey)
openai.api_key = "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"
while True:
prompt = input("prompt: ")
response = openai.Completion.create(
engine="text-davinci-003",
prompt=prompt,
max_tokens=2000,
temperature=0.40,
)
response = response["choices"][0]["text"]
print("responce: ",response)