Skip to content

Sending empty responses #1

Description

@banddans

First i got the error:

Traceback (most recent call last):
  File "Hugging-Chat-Reverse-Engineered-API/main.py", line 40, in <module>
    hf_api = HuggingChat_RE(model="CohereForAI/c4ai-command-r-plus", hf_chat=os.getenv(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HuggingChat_RE.__init__() got an unexpected keyword argument 'system_prompt'

but i fixed it by changing

hf_api = HuggingChat_RE(model="CohereForAI/c4ai-command-r-plus", hf_chat=os.getenv(
        "HUGGING_CHAT_ID"),  system_prompt="Talk Like Shaskesphere")

to

hf_api = HuggingChat_RE(model="CohereForAI/c4ai-command-r-plus", hf_chat=os.getenv(
        "HUGGING_CHAT_ID"))

However when i type something to the ai it gives me only empty responses, how do I fix this?

This is what it looked like:

Hugging-Chat-Reverse-Engineered-API % python3 main.py
Initialised Conversation ID: (keeping this private idk if it actually is)
Initialised Message ID: (keeping this private idk if it actually is)

>> hi

>> HEY?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions