嗨,我是AJ,一位充满激情面向google的开发人员🚀
kaqijiang / auto-gpt-zh Goto Github PK
View Code? Open in Web Editor NEWAuto-GPT中文版本及爱好者组织 同步更新原项目 AI领域创业 自媒体组织 用AI工作学习创作变现
License: MIT License
Auto-GPT中文版本及爱好者组织 同步更新原项目 AI领域创业 自媒体组织 用AI工作学习创作变现
License: MIT License
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
ModuleNotFoundError: No module named 'dotenv'
No response
# Paste your prompt here
没有密匙链接gpt4,
如何把底座换成ChatGLM2?
No response
想要一个本地化运行的AI
现在有一个freeautogpt的项目作者能否复刻一个中文版,期待~
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
No response
无法正常运行
# Paste your prompt here
按照安装方法.md的步骤一步步走,然后运行 python -m autogpt,发现了如下错误
ImportError: DLL load failed while importing numpy_ops: 找不到指定的模块。
pip uninstall numpy
pip install numpy
numpy重装后还是不行
# Paste your prompt here
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
macOS 10.13 运行出错,配置丢失,界面异常,无法显示版本号,卸载(删除)后重装无效。
添加api配置可临时使用,重启应用后会丢失信息,无法保存配置。
waiting for fix it.
waiting for update.
# Paste your prompt here
进行任何搜索操作
处理args时发生错误,并提示:Command google returned: Error: 'query'
在构造的json中,AutoGPT原项目的autogpt/app.py的google命令,处理参数时使用的是google_result = google_official_search(arguments["input"]),这个项目使用的是google_result = google_official_search(arguments["query"])
# Paste your prompt here
No response
No response
No response
# Paste your prompt here
No response
No response
No response
# Paste your prompt here
No response
No response
No response
# Paste your prompt here
No response
No response
No response
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'
能够帮我解决一下启动报错的问题
# Paste your prompt here
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) 此行代码
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
No response
No response
# Paste your prompt here
No response
No response
No response
使用中文版的Auto-GPT始终会出现这个问题,调用openAI时tokens长度超限,求解决!
No response
No response
No response
# Paste your prompt here
autogpt官网不是建议用stable分支吗,是不是可以改用该分支而不是主分支呢
https://github.com/Significant-Gravitas/Auto-GPT/tree/stable
https://github.com/Significant-Gravitas/Auto-GPT/tree/stable
复现问题:
$ python -m autogpt
我希望Auto-GPT: 整理一份周任务
无法根据用户需求自动生成AI Config. 回退到手动模式.
欢迎来到 Auto-GPT-ZH! 中文版由AJ提供. 运行 '--help' 了解更多信息.
无法使用自动生成目标任务的功能。
希望使用自动生成目标任务的功能。
# Paste your prompt here
整理一份周任务
初步排查是因为翻译中文导致:
Lines 181 to 203 in b83f425
有没有优化方案,支持自动生成目标任务的功能。
如题
No response
求助可以设置API Base代理吗?
如题,真诚求问
No response
No response
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掉
mac系统,使用pyenv安装了3.11.0版本,使用pyenv global 3.11.0版本后,运行python3 -V显示是3.11.0版本,运行python3 -m autogpt,提示错误
运行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'
运行成功
# Paste your prompt here
可以自定义api地址,这样就能填写自己的反代api了
No response
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.