Commit graph

66 commits

Author SHA1 Message Date
geekan
3a448a7bb4 config: adjust default values 2023-12-15 11:54:30 +08:00
geekan
60957372fc tuning log level 2023-12-15 11:36:24 +08:00
莘权 马
829dfd8997 feat: merge geekan:main 2023-12-14 20:34:04 +08:00
geekan
bfdb8415ad tuning action node code 2023-12-14 16:01:53 +08:00
莘权 马
78548c2ddc feat: merge geekan:cli-etc 2023-11-28 18:16:50 +08:00
莘权 马
2cd7d266dd feat: merge Config class of send18:dev branch 2023-11-27 21:20:46 +08:00
geekan
22288a342d 1. 动作优化
1. SummarizeCode动作:用于基于代码进行总结,思考bug、逻辑、todo
  2. CodeReview动作优化:目前强制要求回答问题,有更高的成功率了
    1. 增加了LGTM/LBTM的回答,在LGTM时会及时停止,不重写代码
    2. 目前增加了设置中的参数code_review_k_times,与reflexion类似,设置为2
    3. 仍然有概率发生指令不遵循,尤其是会有比较高的概率发生同时review多个代码文件,还没想好怎么解决 #FIXME
  3. 增加了env到Action结构中,现在可以直接调用环境接口了
  4. WriteDesign:去除了对project_name的纠正代码,现在引导下可以一次生成对
    1. 修改了提示词中的##格式,改为了JSON格式
2. 数据结构
  1. Document的标准化:Env->Repo->Document,其中Document/Asset/Code都是Document
    1. 原用于检索的Document改为IndexableDocument
  2. Repo结构引入:用于Document装载与元数据装载
  3. RepoParser引入:写了一个简单的AST parser(后续可能要换tree-sitter),给出了整库symbol
  4. Env中增加了set/get/set_doc/get_doc接口,用于set/get单个变量或者一个Document。这个逻辑后续或许会进一步简化
3. 配置优化
  1. 默认更换为gpt-4-1106-preview,以获得最好的效果与成本
  2. 提供~/.metagpt作为配置最高优先级目录,从中读取config.yaml
  3. workspace可以灵活指定了,在config中配置
  4. project_name可以由命令行指定,并且改为由ProductManager生成
4. metagpt作为默认命令行,而非python startup.py
metagpt --help

metagpt --project-name game_2048 "make a 2048 game"
metagpt "make a 2048 game"

metagpt --project-name game_2048 --inc "将2048改为4096"

metagpt --project-name game_2048 --auto-inc "make a 2048 game"
  1. 使用新的METAGPT_ROOT生成方式,而非寻找git,以便cli安装
  2. 命令行由fire换为了typer,它会带来相对更好的体验
  3. project_name可以灵活指定了,在metagpt命令行输入中配置
5. 其他
  1. 现在支持多国语言了,中文已测试
  2. BossRequirement -> UserRequirement
  3. 大量错误文本的修正,增加了可读性
  4. 中量提示词优化,稍微提升了一些准确率
  5. 暂时屏蔽了LongtermMemory相关逻辑,这个逻辑底层调用了langchain的FAISS,会带来~5秒加载耗时
  6. 修复了安装包中的部分描述错误
  7. 去除了config中在openai_proxy设定时对base的重复修改,这个修改应该在openai初始化时发生
  8. 修复了JSON在中文存储时的特定问题,ensure_ascii=False
2023-11-27 15:48:12 +08:00
geekan
331d74059f 1. 动作优化
1. SummarizeCode动作:用于基于代码进行总结,思考bug、逻辑、todo
  2. CodeReview动作优化:目前强制要求回答问题,有更高的成功率了
2. 数据结构
  1. Document的标准化:Env->Repo->Document,其中Document/Asset/Code都只用Document
    1. 原用于检索的Document改为IndexableDocument
  2. Repo结构引入:用于Document装载与元数据装载
  3. RepoParser引入:写了一个简单的AST parser(后续可能要换tree-sitter),给出了整库symbol
3. 配置优化
  1. 默认更换为gpt-4-1106-preview,以获得最好的效果与成本
  2. 提供~/.metagpt作为配置最高优先级目录,从中读取config.yaml
  3. workspace可以灵活指定了,在config中配置
4. metagpt作为默认命令行,而非python startup.py
  1. 使用新的METAGPT_ROOT生成方式,而非寻找git,以便cli安装
  2. 命令行由fire换为了typer,它会带来相对更好的体验
  3. project_name可以灵活指定了,在metagpt命令行输入中配置
5. 其他
  1. BossRequirement -> UserRequirement
  2. 大量错误文本的修正,增加了可读性
  3. 中量提示词优化,稍微提升了一些准确率
  4. 暂时屏蔽了LongtermMemory相关逻辑,这个逻辑底层调用了langchain的FAISS,会带来~5秒加载耗时
  5. 修复了安装包中的部分描述错误
2023-11-27 15:47:06 +08:00
莘权 马
628ecc0fb7 feat: +annotation 2023-11-27 15:46:25 +08:00
莘权 马
2032a38542 feat: rewrite Engineer & WriteCode & WriteCodeReview 2023-11-23 17:49:38 +08:00
better629
642335317b add independent openllm and fireworks config fields, add llm output postprecess plugin 2023-11-23 01:46:14 +08:00
莘权 马
2bf8ef8c6a feat: RFC 135 2023-11-22 17:08:00 +08:00
better629
c49b832dee add trigger repair_llm_output for open llm 2023-11-21 20:34:37 +08:00
better629
96ce036bd4 add zhipuai api with extra async invoke methods 2023-11-18 21:41:56 +08:00
zhouzinimg
ecea8574b5 修改命名 2023-10-18 22:46:33 +08:00
zhouzinimg
9af9461b4f 新修改。 2023-10-18 19:40:41 +08:00
zhouzinimg
f3c7da32a0 按照要求修改 2023-10-16 22:53:28 +08:00
ziming
c18f384356 Merge branch 'main' 2023-09-25 22:24:09 +08:00
femto
0d9bbcb863 json/markdown format 2023-09-20 12:09:10 +08:00
femto
7ec77e0ad7 json/markdown format 2023-09-19 21:31:27 +08:00
hy.li
e947ce5fea use config for PYPPETEER_EXECUTABLE_PATH 2023-09-13 14:39:51 +08:00
Steven Lee
65db088245
Merge branch 'geekan:main' into main 2023-09-11 10:10:14 +08:00
ziming
761d60f26d Merge branch 'main' of https://github.com/geekan/MetaGPT 2023-09-05 22:27:21 +08:00
ziming
552547e662 添加一个代码 2023-09-05 22:27:06 +08:00
ziming
6046f9c942 修改内容:
调整llm引用模式
添加对星火大模型的支持
在模型报错时可以人工输入
可以通过config直接全人工输入
2023-09-05 21:52:13 +08:00
rainyrfeng
864a66c702 fix feature 2023-09-05 20:36:32 +08:00
rainyrfeng
ce0c7b62a0 Merge branch 'main' into add_azure_engine 2023-09-05 11:22:05 +08:00
hy.li
a386c7e974 playwright version mmdc 2023-09-04 23:30:27 +08:00
rainyrfeng
949a5074ce fix feature 2023-08-31 11:05:59 +08:00
krylo
1f469d55b5
Merge branch 'geekan:main' into main 2023-08-29 10:26:42 -05:00
stellaHSR
f73fa072df
Merge pull request #121 from flyi/test-proxy
fix the bug can not use proxy
2023-08-23 15:53:29 +08:00
brucemeek
21629f841b config conflict fixed 2023-08-17 11:01:53 -05:00
shenchucheng
6e6e91660d Make the SearchEngine more user-friendly. 2023-08-17 17:37:20 +08:00
stellaHSR
625342199a
Merge pull request #194 from flyi/config-api-key
fix exception when using Anthropic_API_KEY rather than OPENAI_API_KEY
2023-08-17 12:04:07 +08:00
brucemeek
3ce123a7bf conflict fixes 2023-08-15 07:46:02 -05:00
brucemeek
193178b7d1 resolved current conflicts 2023-08-15 06:51:39 -05:00
stellaHSR
9dea1f084f
Merge pull request #138 from alitrack/main
remove config: update_costs
2023-08-15 10:30:50 +08:00
Chao Lan
2aef3c5f3a
Merge branch 'geekan:main' into test-proxy 2023-08-14 17:25:46 +08:00
Chao Lan
23274551fa fix raise exception when using Anthropic_API_KEY rather than OPENAI_API_KEY 2023-08-11 09:25:36 +08:00
Steven Lee
bab605ac44
Merge branch 'main' into main 2023-08-10 21:41:22 +08:00
王同贵
ce6b8a95dd Merge remote-tracking branch 'origin/main' into dev/wtg
# Conflicts:
#	metagpt/config.py
#	metagpt/provider/openai_api.py
2023-08-10 20:46:56 +08:00
Chao Lan
848eb37341 set OPENAI_API_BASE when using proxy 2023-08-09 03:24:51 +00:00
shenchucheng
25d2621198 add Researcher role 2023-08-08 22:59:26 +08:00
hy.li
89b4361ef4 remove config: update_costs 2023-08-07 16:32:04 +08:00
Chao Lan
c1c73a2357
no longer checking the value of OPENAI_API_BASE 2023-08-07 16:26:31 +08:00
王同贵
6b9d5ef02f optimize openai api retry mechanism and error logging.
reason: Some guys meet the network issue like "443 error, Connect error"
2023-08-06 13:35:36 +08:00
Chao Lan
8c94195c0b
fix the bug can not use proxy 2023-08-06 05:50:15 +08:00
王同贵
fcc5a279ef optimize logging for network issues.
reason: Some guys meet the network issue like "443 error, Connect error"
2023-08-04 15:00:50 +08:00
brucemeek
5a466d577f fixed the conflicts 2023-08-02 16:22:35 -05:00
brucemeek
0d632c7e56 another run through for translation. 2023-08-02 15:57:10 -05:00