Weixin-Liang / LLM-scientific-feedback

Can large language models provide useful feedback on research papers? A large-scale empirical analysis.
Creative Commons Attribution 4.0 International
489 stars 49 forks source link

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

Open CaffeyChen opened 8 months ago

CaffeyChen commented 8 months ago

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

CaffeyChen commented 8 months ago

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