Skip to content

Commit

Permalink
API call update
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis2054 authored Dec 4, 2023
1 parent 47ecc39 commit 70c8310
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Chapter09/Summarizing_with_ChatGPT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,8 @@
" )\n",
"\n",
" response=client.chat.completions.create(model=\"gpt-3.5-turbo\",messages=iprompt) #ChatGPT dialog\n",
" text=response[\"choices\"][0][\"message\"][\"content\"] #response in JSON\n",
"\n",
" return text"
" return response"
]
},
{
Expand Down

0 comments on commit 70c8310

Please sign in to comment.