開始使用免費開始

試試更強大的模型

來試試 OpenAI 提供的不同 LLM。這些模型都有推理能力,但為了更清楚比較各個基礎模型的差異,請將 reasoning effort 維持在 'none'

在這個練習中,你可以輸入任何提示。不過,建議在每個步驟都用相同的提示,這樣比較會更清楚!如果一時沒有靈感,可以先用提供的提示。

本練習屬於課程

使用 OpenAI Responses API

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Prompt gpt-5.4-nano with no 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": "none"}
)

print(response.output_text)
編輯並執行程式碼