hc20k/LLMChat

Exception thrown while trying to generate message: string indices must be integers

Opened this issue · 2 comments

Hi

I have this message on discord when I try to interact with the bot :

Exception thrown while trying to generate message: string indices must be integers

How can I fix this issue?

You can fix it temporarily by changing line 76 in llmchat/llm_sources/llama.py from
ret += chunk["choices"][0]["text"]
to
ret += chunk

You can fix it temporarily by changing line 76 in llmchat/llm_sources/llama.py from ret += chunk["choices"][0]["text"] to ret += chunk

Thanks, it's work!