Skip to content

Commit 695216b

Browse files
authored
Update views.py
1 parent d490b9c commit 695216b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polls/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def chat_view(request):
3030
model="gpt-4o-mini",
3131
messages=[{"role": "user", "content": message}]
3232
)
33-
reply = response.choices[0].message['content']
33+
reply = response.choices[0].message.content
3434
return JsonResponse({'reply': reply})
3535

3636
@login_required()

0 commit comments

Comments
 (0)