api_key = "insert your API-KEY"
chatgpt_url = "https://api.openai.com/v1/chat/completions"
chatgpt_ver= "gpt-3.5-turbo"
Step 4: Upload and Run
1. send prompt to openAI
The function 'send_prompt_to_chatGPT' sends the prompt to openAI and receives a response from the model. If the response is successful, the generated text is printed serial program.
Enter the prompt as a parameter for the [send_prompt_to_chatGPT] function.
send_prompt_to_chatGPT("Hello")
2. chat with openAI
The function 'chat_with_chatGPT' enables communication with the chatGPT model using the OpenAI API via a serial program. It user enter a message and sends it to OpenAI as a prompt, then prints the response.
The default exit command is ">exit". To modify the exit command, please modify the relevant section in the chatGPT.py file.
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Reset your password
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
Check your email
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.