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 choicesare and how they are used.
- Play around with the parameters temperatureandtop_pfor a simple prompt. What do you notice?