Commit graph

117 commits

Author SHA1 Message Date
geekan
58c8a38fc3 solve test startup.py 2023-12-28 15:46:17 +08:00
geekan
d300acbac8 fix all conflicts. 2023-12-26 01:39:16 +08:00
geekan
9f653ea60b tuning example and config 2023-12-25 23:13:25 +08:00
geekan
fa70a70f53 add json mock 2023-12-25 18:00:48 +08:00
geekan
0fca7b3b1f fix prompt_schema 2023-12-24 15:41:35 +08:00
莘权 马
f441c88156 fixbug: timeout & prompt_format 2023-12-24 12:30:08 +08:00
shenchucheng
4b120a932f add options to disable llm provider check 2023-12-23 21:56:19 +08:00
geekan
2502dd3651 fix conflict 2023-12-23 19:48:01 +08:00
莘权 马
a90f52d4b6 fixbug: Fix the confusion caused by the merging of _client, client, and async_client in the openai_api.py;Split Azure LLM and MetaGPT LLM from OpenAI LLM to reduce the number of variables defined in the Config class for compatibility. 2023-12-23 18:07:42 +08:00
莘权 马
9a1909bb95 feat: merge geekan:main 2023-12-22 16:40:04 +08:00
better629
4b0cb0084a add ollama support 2023-12-22 02:20:43 +08:00
geekan
a4843cd974
Merge pull request #595 from better629/feat_gemini
Feat gemini
2023-12-21 15:10:40 +08:00
better629
18a195a367 update config 2023-12-21 14:46:33 +08:00
better629
9bd900452c fix conflicts 2023-12-21 14:29:01 +08:00
better629
bdb427d5b7 add gemini minimal python version warning 2023-12-21 14:18:50 +08:00
better629
f3eb9f638e add other llm for LLMProviderRegistry 2023-12-21 12:55:45 +08:00
better629
c4fbc478d2 add google gemini 2023-12-21 12:16:17 +08:00
seehi
9a4f0d555c
Merge branch 'main' into feature-openai-v1 2023-12-21 12:06:12 +08:00
geekan
f0fd5ac59b refine a lot of code, fix pylint, use actionnode include ui, action _aask_v1, detail_mining, prepare_interview, etc. 2023-12-19 21:17:02 +08:00
geekan
c12cd7b9c6 refine code 2023-12-19 19:25:01 +08:00
geekan
5aa4ef5d83 fix typo 2023-12-19 18:54:04 +08:00
geekan
1073ffd60d
Merge branch 'dev' into v0.5-release 2023-12-19 18:00:56 +08:00
geekan
f27461f758 add llm provider registry 2023-12-19 17:55:34 +08:00
geekan
2bae7f2bfb refine code 2023-12-19 17:11:02 +08:00
geekan
7f04ec2060 refine code 2023-12-19 17:06:07 +08:00
莘权 马
4ffac9c391 feat: merge geekan/dev 2023-12-19 17:03:49 +08:00
geekan
93745b85cc refine config 2023-12-19 16:54:06 +08:00
geekan
d5d7db0bf8 bug fix and proper log 2023-12-19 16:22:29 +08:00
geekan
f1c6a7ebfb refine code: use handle_exception function instead of in-function duplicate code frags 2023-12-19 16:16:52 +08:00
shenchucheng
335a025c03 fix cContextVar OPTIONS LookupError 2023-12-15 19:38:48 +08:00
莘权 马
be832c9995 feat: merge geekan:env_refactor 2023-12-15 17:05:09 +08:00
莘权 马
ea21217a69 feat: merge send18 2023-12-15 16:29:55 +08:00
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
better629
bef8d64193 add google gemini 2023-12-14 16:45:40 +08:00
geekan
bfdb8415ad tuning action node code 2023-12-14 16:01:53 +08:00
莘权 马
7effe7f74c feat: merge send18:dev 2023-12-14 15:06:04 +08:00
莘权 马
379b7b5820 feat: merge huggingface 2023-12-13 20:27:07 +08:00
seehi
ad347e0717 upgrade tiktoken to support azure 2023-12-06 16:06:17 +08:00
seehi
eaf531e0ac support new openai package 2023-12-05 11:26:54 +08:00
seehi
5f69878a08 openai.api_base -> openai.base_url 2023-11-29 20:23:15 +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