Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mozitux opened this issue Nov 16, 2023 · 2 comments

Comments

@Mozitux
Copy link

Mozitux commented Nov 16, 2023

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?

@heriklesDM
Copy link

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

@Mozitux
Copy link
Author

Mozitux commented Dec 16, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants