IntelligenzaArtificiale / Free-Auto-GPT

Free Auto GPT with NO paids API is a repository that offers a simple version of Auto GPT, an autonomous AI agent capable of performing tasks independently. Unlike other versions, our implementation does not rely on any paid OpenAI API, making it accessible to anyone.
MIT License
2.47k stars 383 forks source link

ValueError: File 'cookiesHuggingChat.json' not found! #117

Closed nothingness6 closed 1 year ago

nothingness6 commented 1 year ago
⚠️INSTRUCTIONS: - Enter ONE "x" inside the brackets [x] to choose the answer - [x] Example - [ ] Example2

Have you already searched for your ISSUE among the resolved ones?

What version of Python do you have?

What version of operating system do you have?

What type of installation did you perform?

Desktop (please complete the following information):

Describe the bug A clear and concise description of what the bug is. The error message says "ValueError: File 'cookiesHuggingChat.json' not found! Create it and put your cookies in there in the JSON format." even though I put the cookies in the right place.

Screenshots If applicable, add screenshots to help explain your problem. FreeAutoGPT-04

Additional context Add any other context about the problem here.

BhagatHarsh commented 1 year ago

I was facing the same error, all you need to do is drag the 'cookiesHuggingChat.json' file out of the repository folder and into the root colab folder (which is /content ) and it should work.

sambickeita commented 1 year ago

I am facing the same error on VS

2023-05-24 15:18:17.902 Could not import azure.core python package. 2023-05-24 15:18:24.258 Uncaught app exception Traceback (most recent call last): File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297, in call self.generate([prompt], stop=stop, callbacks=callbacks) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191, in generate raise e File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:07.750 Uncaught app exception Traceback (most recent call last): File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297, in call self.generate([prompt], stop=stop, callbacks=callbacks) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191, in generate raise e File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:07.905 Uncaught app exception Traceback (most recent call last): File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297, in call self.generate([prompt], stop=stop, callbacks=callbacks) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191, in generate raise e File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'
2023-05-24 15:24:08.053 Uncaught app exception Traceback (most recent call last): File "I:\programmes\python\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script exec(code, module.dict) File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 113, in
specified_task_msg = task_specify_agent.step(task_specifier_msg) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\Camel.py", line 67, in step output_message = self.model(str(input_message.content)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 297, in call self.generate([prompt], stop=stop, callbacks=callbacks) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 191, in generate raise e File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 185, in generate self._generate(prompts, stop=stop, run_manager=run_manager) File "I:\programmes\python\Lib\site-packages\langchain\llms\base.py", line 413, in _generate else self._call(prompt, stop=stop) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py", line 38, in _call self.chatbot = hugchat.ChatBot(cookie_path=self.cookiepath) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: ChatBot.init() got an unexpected keyword argument 'cookie_path'

BhagatHarsh commented 1 year ago

I also faced the same issue you can for now just remove the cookie_path parameter itself or add that parameter in the hugchat.py

as you know in VS code you can ctrl + click on a function to open where its written so do that for line 36 of the file in on path:

I:\GPT\PortableGit\Free-Auto-GPT-main\FreeLLM\HuggingChatAPI.py

you will open the hugchat.py there you can just add the cookie_path over there on line 18:

def __init__(
        self,
        cookies: dict = None,
        cookie_path: str = ""
    ) -> None:

for me this worked.

IntelligenzaArtificiale commented 1 year ago

we have fixed it in the new UPDATE , pls try now