BaşlayınÜcretsiz Başlayın

Single-step prompt to plan a trip

Imagine you're a developer taking a break and you want to apply your prompting skills to plan the perfect beach vacation. As an initial step, you decide to use a standard single-step prompt to seek assistance.

The OpenAI package and the get_response() function have been pre-loaded for you.

The get_response() function in this exercise employs the max_tokens parameter to help this exercise run faster.

Bu egzersiz

Prompt Engineering with the OpenAI API

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Create a single-step prompt asking the model to help you plan a beach vacation.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

client = OpenAI(api_key="")

# Create a single-step prompt to get help planning the vacation
prompt = ____

response = get_response(prompt)
print(response)
Kodu Düzenle ve Çalıştır