MulaiMulai sekarang secara gratis

Experimenting with More Powerful Models

Let's experiment with some of the different LLMs that OpenAI has to offer. All of these models have reasoning capabilities, but to make the differences between the base models clearer, keep the reasoning effort to 'minimal'.

In this exercise, you can enter any prompts you wish, but try to use the same one in each step to make a clearer comparison! If you're struggling for ideas, you can use the one provided.

Latihan ini adalah bagian dari kursus

Working with the OpenAI Responses API

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Prompt gpt-5-nano with minimal reasoning
response = client.responses.create(
    ____="____",
    input='Write the same sentence in three tones: professional, sarcastic, and poetic. The sentence is: "The meeting could have been an email."',
  reasoning={"effort": "minimal"}
)

print(response.output_text)
Edit dan Jalankan Kode