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.44k stars 383 forks source link

Stuck on RUN Other Agent or Ddevelop your own Agent #111

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. It's stuck on RUN Other Agent or Ddevelop your own Agent. I typed various answers for (Enter your task or question) including 'your task or question', but no luck. It says "You have to be logged in." and I have no clue where I should log in. If it means Hugging Face, I did it. Here is the error message:

> Entering new AgentExecutor chain...
Traceback (most recent call last):
  File "/content/Free-AUTO-GPT-with-NO-API/OtherAgent/csvAgent.py", line 83, in <module>
    agent.run(prompt)
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 236, in run
    return self(args[0], callbacks=callbacks)[self.output_keys[0]]
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 140, in __call__
    raise e
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 134, in __call__
    self._call(inputs, run_manager=run_manager)
  File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 922, in _call
    next_step_output = self._take_next_step(
  File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 766, in _take_next_step
    raise e
  File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 759, in _take_next_step
    output = self.agent.plan(
  File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 442, in plan
    full_output = self.llm_chain.predict(callbacks=callbacks, **full_inputs)
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/llm.py", line 213, in predict
    return self(kwargs, callbacks=callbacks)[self.output_key]
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 140, in __call__
    raise e
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 134, in __call__
    self._call(inputs, run_manager=run_manager)
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/llm.py", line 69, in _call
    response = self.generate([inputs], run_manager=run_manager)
  File "/usr/local/lib/python3.10/dist-packages/langchain/chains/llm.py", line 79, in generate
    return self.llm.generate_prompt(
  File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 134, in generate_prompt
    return self.generate(prompt_strings, stop=stop, callbacks=callbacks)
  File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 191, in generate
    raise e
  File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 185, in generate
    self._generate(prompts, stop=stop, run_manager=run_manager)
  File "/usr/local/lib/python3.10/dist-packages/langchain/llms/base.py", line 407, in _generate
    else self._call(prompt, stop=stop)
  File "/content/Free-AUTO-GPT-with-NO-API/OtherAgent/FreeLLM/HuggingChatAPI.py", line 33, in _call
    self.chatbot = hugchat.ChatBot()
  File "/usr/local/lib/python3.10/dist-packages/hugchat/hugchat.py", line 13, in __init__
    self.current_conversation = self.new_conversation()
  File "/usr/local/lib/python3.10/dist-packages/hugchat/hugchat.py", line 73, in new_conversation
    self.accept_ethics_modal()
  File "/usr/local/lib/python3.10/dist-packages/hugchat/hugchat.py", line 64, in accept_ethics_modal
    raise Exception(f"Failed to accept ethics modal with status code {response.status_code}. {response.content.decode()}")
Exception: Failed to accept ethics modal with status code 401. You have to be logged in.

Screenshots If applicable, add screenshots to help explain your problem. AutoGPT-01 AutoGPT-02

Additional context Add any other context about the problem here.

smutslab commented 1 year ago

I get the same problem. Anybody got any idea how to fix it?

Soulter commented 1 year ago

fixed.

Update hugchat to the latest version 0.0.6

pip install hugchat --upgrade

And follow the instructions to get the cookies:

image

https://github.com/Soulter/hugging-chat-api/pull/20

nothingness6 commented 1 year ago

fixed.

Update hugchat to the latest version 0.0.6

pip install hugchat --upgrade

And follow the instructions to get the cookies:

image

Soulter/hugging-chat-api#20 I'm using Google Colab. By the way, I just launched it again, and it showed me a different error.

Exception: Authentication is required now, but no cookies provided

Screenshot: FreeAutoGPT-01

IntelligenzaArtificiale commented 1 year ago

we need to update notebook after HuggingChat update.

nothingness6 commented 1 year ago

we need to update notebook after HuggingChat update.

Oh, I see. I'll be looking forward to it. Thx!

IntelligenzaArtificiale commented 1 year ago

we have fixed it, pls follow the simple guide to get yours cookies for huggingchat

nothingness6 commented 1 year ago

we have fixed it, pls follow the simple guide to get yours cookies for huggingchat

Great! But, where is the simple guide? I can't find it. BTW, I copied the colab again and the new error occurs this time. According to the error message, it requires json file for hugging chat as you said.

FreeAutoGPT-02

IntelligenzaArtificiale commented 1 year ago

pls read the readme , all information to use our free software are included on readme

image

nothingness6 commented 1 year ago

pls read the readme , all information to use our free software are included on readme

image Oh, am I blind? Thanks. Btw, I copied the cookie and copied it to clipboard, and found the cookiesHuggingChat.json file, but have no idea how to paste it. I'm sorry, but I'm a total beginner in this field. Probably like this? : FreeAutoGPT-03

IntelligenzaArtificiale commented 1 year ago

yes perfetct like this, but remove the template text .

Remove copy yours .... and leave only the copied cookies.

nothingness6 commented 1 year ago

yes perfetct like this, but remove the template text .

Remove copy yours .... and leave only the copied cookies.

Hi, sorry for the late response. I was busy yesterday. Btw, I tried it correctly this time, but have the same error: FreeAutoGPT-04