-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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?
Metadata
Metadata
Assignees
Labels
No labels