lifan0127 / ai-research-assistant

Aria is Your AI Research Assistant Powered by GPT Large Language Models
GNU Affero General Public License v3.0
1.06k stars 57 forks source link

Error: additional_kwargs.function_call is undefined #113

Open Jiayou-Chao opened 3 months ago

Jiayou-Chao commented 3 months ago

Hello, ARIA works with GPT-4o-mini, but there is an error message with GPT-4o:

{
  "name": "TypeError",
  "message": "generation.message.additional_kwargs.function_call is undefined",
  "stack": "parseResult/fixedGenerations<@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/user/AppData/Roaming/Zotero/Zotero/Profiles/lxyvxek6.default/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:///C:/Users/user/AppData/Roaming/Zotero/Zotero/Profiles/lxyvxek6.default/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:65453:15\nparseResult@resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/user/AppData/Roaming/Zotero/Zotero/Profiles/lxyvxek6.default/extensions/aria@apex974.com.xpi!/bootstrap.js -> jar:file:///C:/Users/user/AppData/Roaming/Zotero/Zotero/Profiles/lxyvxek6.default/extensions/aria@apex974.com.xpi!/chrome/content/scripts/index.js:65451:11\n"
}

What does it mean?

lifan0127 commented 3 months ago

Hi @Jiayou-Chao The error message means that the model output is not structured properly. Generally speaking, smaller models such as GPT-3.5-Turbo and GPT-4o mini are more prone to such issue. Please try gpt-4o or gpt-4 instead.