To add options to ChatGPT API request, you will need to prepare them as the parameters of a JSON object and pass them in the request body. Your request might look something like this:
```
import openai
openai.api_key = ‘your-api-key’
response = openai.ChatCompletion.create(
model=“gpt-3.5-turbo”,
messages=[
{“role”: “system”, “content”: “You are a helpful assistant.”},
{“role”: “user”, “content”: “Who won the world series in 2020?”},
],
max_tokens=60
)
```
Here, `model` is used to specify the model name, `messages` is an array that has messages to initialize the conversation, and `max_tokens` to limit the length of the generated response.
You can adjust the parameters as per your requirements. The OpenAI API allows you to control various aspects of the generated text, such as its temperature (creativity), top\_p (nucleus sampling), frequency penalty, and presence penalty.
For more information, refer to the OpenAI API documentation.