Using the new ChatGPT API to make an essay writer. Explanation of parameters.
Works for models like gpt-3, gpt-3.5, gpt-4.
Use "gpt-4" instead if you have access to it.
Commands to install openai and tiktoken:
pip install openai
pip install tiktoken
If "pip" is not found, you have to install it. If it is already installed, try "pip3" instead.
Sample Code:
https://github.com/JosephChing/gpt-3.5-tur...
Link to api-key configuration:
https://platform.openai.com/account/api-keys
API documentation:
https://platform.openai.com/docs/guides/chat
tiktoken sample code for counting tokens:
https://github.com/openai/openai-cookbook/...
Timestamps:
0:00 - Setup and Packages
0:12 - Billing and api-key
1:10 - Required Parameters
3:25 - User Input
3:34 - Counting Tokens
4:53 - Test Run
6:28 - Message List
6:55 - Formatting and Essay Prompt
7:48 - Stop parameter
8:16 - Presence Penalty
8:47 - Presence Penalty Demo
9:35 - Frequency Penalty
8:47 - Frequency Penalty Demo
11:16 - Temperature
11:54 - Temparture Demo
12:08 - Stream
On this page of the site you can watch the video online ChatGPT 4 API - Setup Guide and Parameters Explained with a duration of hours minute second in good quality, which was uploaded by the user Joseph Ching Math 06 March 2023, share the link with friends and acquaintances, this video has already been watched 2,811 times on youtube and it was liked by 74 viewers. Enjoy your viewing!