Decoding the response
The format of the output response from the Chat Completions endpoint is an object where the message can be accessed by selecting the appropriate fields.
In this example, you've just submitted a request to the API to list three Python libraries with the year they were first released, and it has returned a response.
For the response shown, what is the correct way to extract the content of the message only?
Questo esercizio fa parte del corso
Developing AI Systems with the OpenAI API
Esercizio pratico interattivo
Passa dalla teoria alla pratica con uno dei nostri esercizi interattivi
Inizia esercizio