Exercise: OpenAI - Getting started
Task: Explore the OpenAI chat.completions
API.
Instructions:
- Generate a chat completion and analyze the response object
ChatCompletion
. What information do you get with each completion? - How can you access the actual completion of your prompt?
- Use the OpenAI API documentation to find out what
choices
are and how they are used. - Play around with the parameters
temperature
andtop_p
for a simple prompt. What do you notice?