Closed adayarulin closed 5 months ago
Hi! Thanks for your issue, we will deal with your issue as soon as possible.
Also, when I use wait_until_done() it still doesn't work
Issue is resolved by installing latest version of hug chat: pip install hugchat==0.4.8
Describe the bug In hugchat there is creating new chat, but it is not responding and saying "Message to write do not find" when I click retry.
To Reproduce EMAIL = "" PASSWD = "" sign = Login(EMAIL, PASSWD) cookies = sign.login(save_cookies=False) chatbot = hugchat.ChatBot(cookies=cookies.get_dict())
async def generate_message( message_from_user: str, model_display_name, conversation_context, user_first_name ): prompt_document = await TelegramSystemPrompt.find_one() system_prompt = prompt_document.prompt.format( model_display_name=model_display_name, user_first_name=user_first_name, conversation_context=conversation_context, ) max_retries = 5 retry_delay = 1 ASSISTANT_ID: str = "666fe314d188f9e3586d5809" chatbot.new_conversation(assistant=ASSISTANT_ID) #or can use this code: chatbot.new_conversation(modelIndex=1, switch_to=True, system_prompt=system_prompt) instead of using assistant
Expected behavior It should create new conversation and generate answer using user message.
Screenshots
Additional context What Operating System are you using? MacOs M3 What Python version are you using? (Found using
python3 --version
orpython --version
) 3.10.0 What version of hugchat are you using? (Found usingpip3 show hugchat
orpip show hugchat
) 0.4.5