Weixin-Liang/LLM-scientific-feedback

Failed to generate review... Error:'Choice' object is not subscripatble

CaffeyChen opened this issue · 1 comments

Hi, it looks like a great work. But I got this error. Is there any method to fix it?

I fixed it!
change result = completion.choices[0]["message"]["content"] to result = completion.choices[0].message.content