Finity-Alpha / OpenVoiceChat

Have a natural voice conversation with an LLM
http://www.finityalpha.com/OpenVoiceChat/
Apache License 2.0
39 stars 12 forks source link

AttributeError: 'Chatbot' object has no attribute 'generate_response_stream' #35

Open Shehryar718 opened 2 weeks ago

Shehryar718 commented 2 weeks ago
Screenshot 2024-06-23 at 7 31 52 PM

I am getting this issue when using llm_hf. This issue could be solved by editing the class name as:

from .base import BaseChatbot
class Chatbot(BaseChatbot):

instead of

class Chatbot:

But there's a catch, the run function and post_process function is not implemented in llm_hf class. Hence, llm_hf is not useable with run_chat function.

fakhirali commented 2 weeks ago

Thanks for the issue. llm_hf has not been updated in a looong while. I'll fix this as soon as I get the chance. In the meantime see if you can make a custom chatbot for your use case, here is how to do so.

Shehryar718 commented 2 weeks ago

I'll give it a try.