Commit graph

162 commits

Author SHA1 Message Date
geekan
d3c135edff refine utils code 2023-12-19 14:17:54 +08:00
莘权 马
290fb8b8d0 refactor: format 2023-12-14 21:10:46 +08:00
莘权 马
829dfd8997 feat: merge geekan:main 2023-12-14 20:34:04 +08:00
莘权 马
4cb3485c86 feat: After users provide bug feedback, move directly to the WriteCode stage of the process. 2023-12-12 21:32:03 +08:00
Sirui Hong
35f2552e33
Merge pull request #541 from iorisa/rebase/geekan/env_refactor
feat: rebase to geekan:main
2023-12-12 13:53:15 +08:00
better629
8c1b9db7d2
Merge branch 'main' into feat_repair_llmoutput 2023-12-12 00:27:18 +08:00
geekan
292344cf40 change all mail address from fuzhi.ai to deepwisdom.ai 2023-12-11 15:23:55 +08:00
geekan
b4eb8e4f34 use metagpt cli instead. update all related docs 2023-12-11 14:58:54 +08:00
莘权 马
6f8fa7665c feat: rebase from geekan:main 2023-12-08 20:27:33 +08:00
莘权 马
ec8c703c5a feat: merge geekan:main 2023-12-08 20:03:13 +08:00
莘权 马
9d84c8f047 feat: +SummarizeCode, refactor project_name 2023-12-08 10:34:57 +08:00
better629
f1e01c5ba8 set config value not relay on key.yaml 2023-12-04 11:12:13 +08:00
莘权 马
4845dafb94 feat: +log 2023-12-04 10:31:02 +08:00
shenchucheng
dfc6e13ac3 add agent subscription 2023-12-01 16:10:38 +08:00
莘权 马
78548c2ddc feat: merge geekan:cli-etc 2023-11-28 18:16:50 +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
better629
c25d5a73d1 add ut test_repair_invalid_json 2023-11-23 11:53:11 +08:00
better629
502bb2c449 fix extract_content_from_output 2023-11-23 11:21:25 +08:00
better629
642335317b add independent openllm and fireworks config fields, add llm output postprecess plugin 2023-11-23 01:46:14 +08:00
莘权 马
e9471ed206 feat: merge rfc116 2023-11-22 17:29:34 +08:00
莘权 马
fb2167cccf feat: merge geekan:env_factor 2023-11-22 17:19:34 +08:00
莘权 马
2bf8ef8c6a feat: RFC 135 2023-11-22 17:08:00 +08:00
莘权 马
20ae74e99d feat: Merge geekan:env_refactore 2023-11-22 16:57:42 +08:00
莘权 马
cda032948f refactor: pre-commit run --all-files 2023-11-22 16:26:48 +08:00
better629
fc4ec5a944 update retry_parse_json_text 2023-11-22 13:01:16 +08:00
better629
c49b832dee add trigger repair_llm_output for open llm 2023-11-21 20:34:37 +08:00
better629
c233699275 add aiohttp encapsulation 2023-11-21 20:33:58 +08:00
garylin2099
f57355c889
Merge pull request #490 from orange-crow/feat_openai_ask_code_via_function
Feat openai ask code via function.
2023-11-21 17:59:35 +08:00
莘权 马
b73cbe7379 feat: +unit test 2023-11-21 14:00:09 +08:00
刘棒棒
657571a192 feat: ask_code message support type list[str]. 2023-11-21 12:01:28 +08:00
刘棒棒
4418fe8283 feat: ask_code message support type list[Message]. 2023-11-21 11:40:15 +08:00
莘权 马
29003a9beb feat: +file repository 2023-11-20 19:36:54 +08:00
莘权 马
f1fb3b3bec feat: +annotation 2023-11-20 16:35:16 +08:00
莘权 马
9c5f7c7671 feat: +annotation 2023-11-20 16:33:46 +08:00
莘权 马
0cf6ec1a93 feat: +git repo 2023-11-20 16:27:16 +08:00
better629
2c81cc3e0f add zhipuai_api unittest and remove useless log 2023-11-18 22:00:52 +08:00
刘棒棒
218eeef4b8 chore: messages supports more types. 2023-11-18 18:15:50 +08:00
刘棒棒
0153bb5416 feat: add ask code via function. 2023-11-18 16:09:56 +08:00
莘权 马
282a86bfa7 refactor: unit tests 2023-11-10 17:14:58 +08:00
莘权 马
c18bc7c876 refactor: Simplify the Message class. 2023-11-08 20:27:18 +08:00
garylin2099
56c2a162ac change PROJECT_ROOT setting & SoftwareCompany -> Team 2023-11-08 19:42:30 +08:00
莘权 马
af4c87e123 refactor: rename is_recipient 2023-11-08 13:42:08 +08:00
莘权 马
a045f73fec feat: Support more versatile parameter formats. 2023-11-06 23:13:58 +08:00
莘权 马
c6f97f7487 refactor: tx_from/tx_to 2023-11-06 11:47:29 +08:00
莘权 马
ed7eb4d08a refactor: @cause_by.setter 2023-11-04 17:18:26 +08:00
莘权 马
eba7f868e7 refactor: @cause_by.setter 2023-11-04 17:17:02 +08:00
莘权 马
327c047fa5 refactor: @cause_by.setter 2023-11-04 17:13:10 +08:00
莘权 马
3a5bfcafc5 refactor: @cause_by.setter 2023-11-04 17:12:02 +08:00
莘权 马
be77a9c308 refactor: @cause_by.setter 2023-11-04 17:10:44 +08:00