Soulter / hugging-chat-api

HuggingChat Python API🤗
GNU Affero General Public License v3.0
865 stars 124 forks source link

Sorry, something went wrong. Please try again. #248

Closed netwrkspider closed 2 months ago

netwrkspider commented 4 months ago

Describe the bug When i tried to create API request using python it's give me an error on hugging chat GUI. yesterday it was working well.

Error is : Sorry, something went wrong. Please try again.

Code : prompt = "what is two plus two" final_prompt = prompt

Create your ChatBot

chatbot = hugchat.ChatBot(cookies=cookies.get_dict())  # or cookie_path="usercookies/<email>.json"

# Non stream response
try:
    query_result = chatbot.chat(final_prompt)
    print(query_result) # or query_result.text or query_result["text"]
except hugchat.exceptions.ChatError as e:
    print("error.")
chatbot.new_conversation(switch_to = True)
chatbot.delete_all_conversations()
image

Additional context What Operating System are you using? I am using python 3.10.9 What version of hugchat are you using? (Found using pip3 show hugchat or pip show hugchat)

bug
github-actions[bot] commented 4 months ago

Hi! Thanks for your issue, we will deal with your issue as soon as possible.

netwrkspider commented 4 months ago

Also i tried with hugchat 0.4.9 version but having same issue.

netwrkspider commented 4 months ago

I found very strange issue when i tried via GUI and the Model: CohereForAI/c4ai-command-r-plus is not generating any response but when i manually switched to Mistral Model and hugchat is working fine.

But when i tried to execute the hugchat python code the chat default model automattically switched to c4ai-command-r-plus

image
netwrkspider commented 4 months ago

I encountered an issue while using different LLM settings for my python code. When I set default_llm=3, I receive the expected text responses. However, switching to default_llm=6 (which corresponds to mistralai/Mistral-7B-Instruct-v0.2) results in responses that are numeric instead of text-based, despite the GUI generating text responses correctly.

github-actions[bot] commented 2 months ago

This issue was marked as stale because of inactivity.

github-actions[bot] commented 2 months ago

This issue was closed because of inactivity.