huntila / scholarly-kgqa

This repository contains our Scholarly KGQA system code, for the Scholarly-QALD-23 challenge.
MIT License
7 stars 0 forks source link

why KeyError: 'choices'? #1

Open yindahu87 opened 7 months ago

yindahu87 commented 7 months ago

File "C:\GithubProjects\scholarly-kgqa-main\main.py", line 62, in run_llm return response.json()[0]["choices"][0]["message"]["content"] KeyError: 'choices'

huntila commented 7 months ago

Hi, thanks for testing. This error is due to the missing key of the LLM. key = " " # key to access the LLM @ line 50 needs a value.

chengshenglin commented 3 months ago

Hi,I don't know how to get the key.Can you tell me the way to get it?