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

Extracting Information from the Response

With your request made and the response received from the OpenAI API, it's time to begin extracting information from it. The response from the Responses API contains more than just the model output, it contains structured outputs for chat applications, and useful metadata for tracking and building a chat history.

A response object is already available for you to investigate as response.

Bu egzersiz

Working with the OpenAI Responses API

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Extract the number of output tokens
print(response.____.____)
Kodu Düzenle ve Çalıştır