Failed to generate review... Error:'Choice' object is not subscripatble
CaffeyChen opened this issue · 1 comments
CaffeyChen commented
Hi, it looks like a great work. But I got this error. Is there any method to fix it?
CaffeyChen commented
I fixed it!
change result = completion.choices[0]["message"]["content"]
to result = completion.choices[0].message.content