GithubHelp home page GithubHelp logo

kaqijiang / auto-gpt-zh Goto Github PK

View Code? Open in Web Editor NEW
2.4K 35.0 402.0 6.53 MB

Auto-GPT中文版本及爱好者组织 同步更新原项目 AI领域创业 自媒体组织 用AI工作学习创作变现

License: MIT License

Dockerfile 0.63% Python 99.05% JavaScript 0.20% Batchfile 0.06% Shell 0.06%
auto-gpt chat-gpt chatbot chatgpt chinese chinese-simplified chinese-translation gpt-3-5-turbo-api gpt-35-turbo gpt4-api

auto-gpt-zh's Introduction

Auto-GPT:自主 GPT-4 实验

这里是Auto-GPT中文项目- 同步fork Auto-GPT Auto-GPT修改了分支规则,Fork同步于Stable最新分支

公众号<阿杰与AI>回复"Auto-GPT"加入群聊,共同探讨更多玩法

开源专栏推荐,欢迎你的加入

【学习使用ChatGPT MidJourney 助力工作学习创作】

无需部署中文网页版欢迎体验

https://www.autogpt-zh.com/

中文版Demo :

Demo video

Auto-GPT 是一个实验性开源应用程序,展示了 GPT-4 语言模型的功能。该程序由 GPT-4 驱动,将 LLM 的“**”链接在一起,以自主实现您设定的任何目标。作为 GPT-4 完全自主运行的首批示例之一,Auto-GPT 突破了 AI 的可能性界限。

可以做什么?

自主人工智能:它所具备的能力主打的就是一个“自主”,完全不用人类插手的那种!

**例如:**我要求AutoGPT用Vue开发一个登录页面,结果不到3分钟,AI自己就“唰唰唰”地搞定了。

AI自己打开浏览器上网、自己使用第三方工具、自己思考、自己操作你的电脑。 它首先打开Vue官网,学习了下如何创建项目和模版,又去GitHub下载了一个类似的页面,下载下来自己改了一下。

**例如:**给它下达一个任务,让它去帮你做一些商业调查,或者历史故事。

AutoGPT在接到这项任务之后,便开始了他的展示:

  • 思考中……
  • 添加任务:调用浏览器或者GPTAPI去学习内容,再进行分析
  • 添加任务:学习之后规划要做的事情
  • 添加任务:逐步实现。
  • 思考中……

然后AgentGPT先是输出执行的结果。 或者你给它下达命令:'请给我一下白宫的秘密资料'。

  • 它会考虑如何去做
  • 它可能会先从互联网上搜索和下载相关的文件。
  • 如果觉得不够详细,它可能会学习一下黑客知识,黑进白宫获取资料。
  • 这时候,请照顾好自己,因为你可能看着看着电脑,突然发现窗外一堆大汉,并佩戴者FBI徽章的人看着你,请不要慌张,请不要抵抗,也不要试图逃跑。
  • 记得先拍照发个朋友圈。

开个玩笑,就是说它现在可以做你要它做的任何事情,它就是一个无敌超人的存在。 但是也请不要抱有太大希望,很可能运行半天什么也没有,它还是一个孩子,给它一点时间,思路很好,未来很美好。

📋 要求

环境(选择一个)

快速入门

  1. 设置您的OpenAI API密钥
  2. 下载最新版本
  3. 安装依赖项并设置环境变量
  4. 运行应用程序
  5. 如果报错包含http 和 443 字样请查看终端代理设置

有关完整的设置说明和配置选项,请参阅以下的文档。

💾 使用文档

安装方法

使用方法

声音

搜索

缓存

图像生成

⚠️ 局限性

该实验旨在展示 GPT-4 的潜力,但存在一些局限性:

  1. 不是完善的应用程序或产品,只是一个实验
  2. 在复杂的真实业务场景中可能表现不佳。事实上,如果确实如此,请分享您的结果!
  3. 运行成本非常高,因此请使用 OpenAI 设置和监控您的 API 密钥限制!

🛡 免责声明

免责声明 Auto-GPT 这个项目是一个实验性应用程序,按“原样”提供,没有任何明示或暗示的保证。使用本软件,即表示您同意承担与其使用相关的所有风险,包括但不限于数据丢失、系统故障或可能出现的任何其他问题。

本项目的开发者和贡献者对因使用本软件而可能发生的任何损失、损害或其他后果不承担任何责任或义务。您对基于 Auto-GPT 提供的信息做出的任何决定和行动承担全部责任。

**请注意,由于使用代币,使用 GPT-4 语言模型可能会很昂贵。**通过使用此项目,您承认您有责任监控和管理您自己的代币使用情况和相关费用。强烈建议定期检查您的 OpenAI API 使用情况并设置任何必要的限制或警报以防止意外收费。

作为一项自主实验,Auto-GPT 可能会生成不符合现实世界商业惯例或法律要求的内容或采取的行动。您有责任确保基于此软件的输出做出的任何行动或决定符合所有适用的法律、法规和道德标准。本项目的开发者和贡献者对因使用本软件而产生的任何后果不承担任何责任。

通过使用 Auto-GPT,您同意就任何和所有索赔、损害、损失、责任、成本和费用(包括合理的律师费)对开发人员、贡献者和任何关联方进行赔偿、辩护并使其免受损害因您使用本软件或您违反这些条款而引起的。

auto-gpt-zh's People

Contributors

eltociear avatar g1331 avatar kaqijiang avatar ookiineko avatar zky001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-gpt-zh's Issues

UnboundLocalError: local variable 'hooked_open' referenced before assignment

Auto-GPT 正在启动...
Traceback (most recent call last):
File "D:\Software\anaconda3\envs\gpt\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\Software\anaconda3\envs\gpt\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\Project\Auto-GPT-ZH\autogpt_main
.py", line 7, in
autogpt.localization.hook_open()
File "E:\Project\Auto-GPT-ZH\autogpt\localization.py", line 148, in hook_open
if not hooked_open:
UnboundLocalError: local variable 'hooked_open' referenced before assignment

十分感谢翻译~功德+1000

Duplicates

  • I have searched the existing issues

Summary 💡

No response

Examples 🌈

No response

Motivation 🔦

No response

无法根据用户需求自动生成AI Config.

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

复现问题:

$ python -m autogpt
我希望Auto-GPT: 整理一份周任务
无法根据用户需求自动生成AI Config.  回退到手动模式.
欢迎来到 Auto-GPT-ZH! 中文版由AJ提供.  运行 '--help' 了解更多信息.

Current behavior 😯

无法使用自动生成目标任务的功能。

Expected behavior 🤔

希望使用自动生成目标任务的功能。

Your prompt 📝

# Paste your prompt here
整理一份周任务

初步排查是因为翻译中文导致:

system_prompt = """
Your task is to devise up to 5 highly effective goals and an appropriate role-based name (_GPT) for an autonomous agent, ensuring that the goals are optimally aligned with the successful completion of its assigned task.
The user will provide the task, you will provide only the output in the exact format specified below with no explanation or conversation.
Reply content in Chinese
Example input:
Help me with marketing my business
Example output:
Name: CMOGPT
描述:一个专业的数字营销人工智能,通过提供世界级的专业知识来解决 SaaS、内容产品、代理等的营销问题,帮助 Solopreneurs 发展他们的业务。
目标:
- 作为您的虚拟首席营销官,参与有效的问题解决、优先排序、规划和支持执行,以满足您的营销需求。
- 提供具体、可操作且简洁的建议,帮助您做出明智的决定,而无需使用陈词滥调或过于冗长的解释。
- 识别并优先考虑速赢和具有成本效益的活动,以最少的时间和预算投资获得最大的成果。
- 在信息不明或不确定的情况下,主动带头指导并提出建议,确保您的营销策略不偏离正轨。
"""

有没有优化方案,支持自动生成目标任务的功能。

No module named 'openai'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

E:\ideaProgram\gitProgram\Auto-GPT-ZH>python -m autogpt
Auto-GPT 正在启动...
Traceback (most recent call last):
File "D:\ProgramData\anaconda3\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\ProgramData\anaconda3\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt_main
.py", line 8, in
autogpt.cli.main()
File "D:\ProgramData\anaconda3\lib\site-packages\click\core.py", line 1128, in call
return self.main(*args, **kwargs)
File "D:\ProgramData\anaconda3\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "D:\ProgramData\anaconda3\lib\site-packages\click\core.py", line 1637, in invoke
super().invoke(ctx)
File "D:\ProgramData\anaconda3\lib\site-packages\click\core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "D:\ProgramData\anaconda3\lib\site-packages\click\core.py", line 754, in invoke
return callback(*args, **kwargs)
File "D:\ProgramData\anaconda3\lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\cli.py", line 78, in main
from autogpt.agent.agent import Agent
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\agent_init
.py", line 1, in
from autogpt.agent.agent import Agent
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\agent\agent.py", line 3, in
from autogpt.app import execute_command, get_command
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\app.py", line 5, in
from autogpt.agent.agent_manager import AgentManager
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\agent\agent_manager.py", line 6, in
from autogpt.config.config import Singleton
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\config_init
.py", line 5, in
from autogpt.config.config import Config, check_openai_api_key
File "E:\ideaProgram\gitProgram\Auto-GPT-ZH\autogpt\config\config.py", line 4, in
import openai
ModuleNotFoundError: No module named 'openai'

我卸载openai模块重新使用pip install openai命令安装后还是提示以上报错,pip版本也是最新的23.1.1

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

autogpt/llm_utils.py 137行代码可以考虑优化一下

return openai.Embedding.create(
input=[text], model="text-embedding-ada-002"
)["data"][0]["embedding"]

可能导致
File "/media/Data/data/bone_seg/Auto-GPT-ZH-0.2.1/autogpt/memory/local.py", line 75, in add
embedding = create_embedding_with_ada(text)
File "/media/Data/data/bone_seg/Auto-GPT-ZH-0.2.1/autogpt/llm_utils.py", line 137, in create_embedding_with_ada
return openai.Embedding.create(
File "/home/anaconda3/lib/python3.9/site-packages/openai/api_resources/embedding.py", line 33, in create
response = super().create(*args, **kwargs)
File "/home/anaconda3/lib/python3.9/site-packages/openai/api_resources/abstract/engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "/home/anaconda3/lib/python3.9/site-packages/openai/api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "/home/anaconda3/lib/python3.9/site-packages/openai/api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "/home/anaconda3/lib/python3.9/site-packages/openai/api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 11300 tokens (11300 in your prompt; 0 for the completion). Please reduce your prompt; or completion length.

解决思路:
1.限制此处text的长度,做个长度限制
2.直接把这块报错给expect掉

Command None returned: Error: 'NoneType' object has no attribute 'lower'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

No module named 'dotenv'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

python -m autogpt
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 148, in _get_module_details
File "", line 112, in get_module_details
File "F:\Python\workspace\Auto-GPT-ZH-main\autogpt_init
.py", line 5, in
from dotenv import load_dotenv

Current behavior 😯

ModuleNotFoundError: No module named 'dotenv'

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

macOS 10.13 运行出错,配置丢失,界面异常,无法显示版本号,卸载(删除)后重装无效。

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

macOS 10.13 运行出错,配置丢失,界面异常,无法显示版本号,卸载(删除)后重装无效。

添加api配置可临时使用,重启应用后会丢失信息,无法保存配置。

屏幕快照 2023-04-24 12 09 52

Current behavior 😯

waiting for fix it.

Expected behavior 🤔

waiting for update.

Your prompt 📝

# Paste your prompt here

openai.error.InvalidRequestError: This model's maximum context length is 8191 tokens, however you requested 14626 tokens (14626 in your prompt; 0 for the completion).

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

使用中文版的Auto-GPT始终会出现这个问题,调用openAI时tokens长度超限,求解决!

ImportError: DLL load failed while importing numpy_ops: 找不到指定的模块。

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

按照安装方法.md的步骤一步步走,然后运行 python -m autogpt,发现了如下错误

ImportError: DLL load failed while importing numpy_ops: 找不到指定的模块。

Current behavior 😯

pip uninstall numpy
pip install numpy

Expected behavior 🤔

numpy重装后还是不行

Your prompt 📝

# Paste your prompt here

ModuleNotFoundError: No module named 'distro'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

Traceback (most recent call last):
File "/nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/nix/store/fdqpyj613dr0v1l1lrzqhzay7sk4xg87-python3-3.10.10/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/workspace/Auto-GPT-ZH/autogpt/main.py", line 8, in
autogpt.cli.main()
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
rv = super().invoke(ctx)
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/nix/store/c424f8r8i3n7zyd11vzg59yw0d5xf0vn-python3.10-click-8.1.3/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/workspace/Auto-GPT-ZH/autogpt/cli.py", line 86, in main
from autogpt.main import run_auto_gpt
File "/workspace/Auto-GPT-ZH/autogpt/main.py", line 8, in
from autogpt.agent.agent import Agent
File "/workspace/Auto-GPT-ZH/autogpt/agent/init.py", line 1, in
from autogpt.agent.agent import Agent
File "/workspace/Auto-GPT-ZH/autogpt/agent/agent.py", line 3, in
from autogpt.app import execute_command, get_command
File "/workspace/Auto-GPT-ZH/autogpt/app.py", line 5, in
from autogpt.agent.agent_manager import AgentManager
File "/workspace/Auto-GPT-ZH/autogpt/agent/agent_manager.py", line 6, in
from autogpt.config.config import Config
File "/workspace/Auto-GPT-ZH/autogpt/config/init.py", line 4, in
from autogpt.config.ai_config import AIConfig
File "/workspace/Auto-GPT-ZH/autogpt/config/ai_config.py", line 12, in
import distro
ModuleNotFoundError: No module named 'distro'

Current behavior 😯

Snipaste_2023-05-05_15-15-47

Expected behavior 🤔

能够帮我解决一下启动报错的问题

Your prompt 📝

# Paste your prompt here

Error: The following AI output couldn't be converted to a JSON:

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

运行python -m autogpt直接报错

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

Traceback (most recent call last):
File "D:\java\python3\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "D:\java\python3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "D:\java\Auto-GPT-ZH-main\autogpt_main
.py", line 4, in
from autogpt.agent.agent import Agent
File "D:\java\Auto-GPT-ZH-main\autogpt\agent_init
.py", line 1, in
from autogpt.agent.agent import Agent
File "D:\java\Auto-GPT-ZH-main\autogpt\agent\agent.py", line 2, in
from autogpt.app import execute_command, get_command
File "D:\java\Auto-GPT-ZH-main\autogpt\app.py", line 12, in
from autogpt.commands.web_requests import scrape_links, scrape_text
File "D:\java\Auto-GPT-ZH-main\autogpt\commands\web_requests.py", line 12, in
from autogpt.memory import get_memory
File "D:\java\Auto-GPT-ZH-main\autogpt\memory_init_.py", line 9, in
from autogpt.memory.redismem import RedisMemory
File "D:\java\Auto-GPT-ZH-main\autogpt\memory\redismem.py", line 9, in
from redis.commands.search.field import TextField, VectorField
File "D:\java\python3\lib\site-packages\redis\commands\search_init_.py", line 3, in
from ...asyncio.client import Pipeline as AsyncioPipeline
File "D:\java\python3\lib\site-packages\redis\asyncio_init_.py", line 1, in
from redis.asyncio.client import Redis, StrictRedis
File "D:\java\python3\lib\site-packages\redis\asyncio\client.py", line 646, in
class PubSub:
File "D:\java\python3\lib\site-packages\redis\asyncio\client.py", line 713, in PubSub
def close(self) -> Awaitable[NoReturn]:
File "D:\java\python3\lib\typing.py", line 251, in inner
return func(*args, **kwds)
File "D:\java\python3\lib\typing.py", line 626, in getitem
params = tuple(_type_check(p, msg) for p in params)
File "D:\java\python3\lib\typing.py", line 626, in
params = tuple(_type_check(p, msg) for p in params)
File "D:\java\python3\lib\typing.py", line 135, in _type_check
raise TypeError(f"Plain {arg} is not valid as type argument")
TypeError: Plain typing.NoReturn is not valid as type argument

Current behavior 😯

No response

Expected behavior 🤔

无法正常运行

Your prompt 📝

# Paste your prompt here

.env.template中携带了私人api-key,注意安全~

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

No response

Current behavior 😯

No response

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

如何把底座换成ChatGLM2?

Duplicates

  • I have searched the existing issues

Summary 💡

没有密匙链接gpt4,
如何把底座换成ChatGLM2?

Examples 🌈

No response

Motivation 🔦

想要一个本地化运行的AI

ModuleNotFoundError: No module named 'click'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

mac系统,使用pyenv安装了3.11.0版本,使用pyenv global 3.11.0版本后,运行python3 -V显示是3.11.0版本,运行python3 -m autogpt,提示错误

Current behavior 😯

运行python3 -m autogpt,提示错误

mac@MacdeMBP Auto-GPT-ZH % python3 -m autogpt Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/Users/mac/works/Auto-GPT-ZH/autogpt/__main__.py", line 2, in <module> import autogpt.cli File "/Users/mac/works/Auto-GPT-ZH/autogpt/cli.py", line 2, in <module> import click ModuleNotFoundError: No module named 'click'

Expected behavior 🤔

运行成功

Your prompt 📝

# Paste your prompt here

Command google returned: Error: 'query'

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

进行任何搜索操作

Current behavior 😯

处理args时发生错误,并提示:Command google returned: Error: 'query'

Expected behavior 🤔

在构造的json中,AutoGPT原项目的autogpt/app.py的google命令,处理参数时使用的是google_result = google_official_search(arguments["input"]),这个项目使用的是google_result = google_official_search(arguments["query"])

Your prompt 📝

# Paste your prompt here

pyo3_runtime.PanicException: assertion failed: encoder.len() == decoder.len()

thread '' panicked at 'assertion failed: encoder.len() == decoder.len()', src/lib.rs:458:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
Traceback (most recent call last):
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/main.py", line 5, in
autogpt.cli.main()
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/core.py", line 1635, in invoke
rv = super().invoke(ctx)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/cli.py", line 146, in main
agent.start_interaction_loop()
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/agent/agent.py", line 75, in start_interaction_loop
assistant_reply = chat_with_ai(
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/chat.py", line 95, in chat_with_ai
) = generate_context(prompt, relevant_memory, full_message_history, model)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/chat.py", line 43, in generate_context
current_tokens_used = token_counter.count_message_tokens(current_context, model)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/autogpt/token_counter.py", line 25, in count_message_tokens
encoding = tiktoken.encoding_for_model(model)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/tiktoken/model.py", line 75, in encoding_for_model
return get_encoding(encoding_name)
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/tiktoken/registry.py", line 63, in get_encoding
enc = Encoding(**constructor())
File "/Users/mac/PycharmProjects/Auto-GPT-ZH/venv/lib/python3.10/site-packages/tiktoken/core.py", line 50, in init
self._core_bpe = _tiktoken.CoreBPE(mergeable_ranks, special_tokens, pat_str)
pyo3_runtime.PanicException: assertion failed: encoder.len() == decoder.len()

任何输入都会报此错误,错误发生在 self._core_bpe = _tiktoken.CoreBPE(mergeable_ranks, special_tokens, pat_str) 此行代码

网页一直显示正在搜索中,无反应

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

打开网页连接运行

Current behavior 😯

image

Expected behavior 🤔

能够进行交互互动

Your prompt 📝

# Paste your prompt here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.