程允权
a68c3442bc
Refactor get_choice_delta_text for safer dict access
2024-01-28 13:49:31 +08:00
huzixia
c3b4c698d8
update repair_llm_raw_output.py
2024-01-27 18:23:57 +08:00
huzixia
11f70ca9b1
modify code based on feedback of action_node.py and repair_llm_raw_output.py, add code in test_repair_llm_raw_output.py
2024-01-27 18:06:52 +08:00
huzixia
8b5f7848fa
delete PR dir
2024-01-27 17:00:59 +08:00
huzixia
43b069f453
Addtionly, if you do not want JSONDecodeError to occur, you can add 'Delete comments in json' after FORMAT_CONSTRAINT in action_node.py
2024-01-26 23:20:16 +08:00
huzixia
ed54f6b86a
To avoid JSONDecodeError:
...
Remove comments in output json str, after json value content, maybe start with #, maybe start with //, particularly, it is not inside the string value
Addtionly, if you do not want JSONDecodeError to occur, you can add 'Delete comments in json' after FORMAT_CONSTRAINT in action_node.py
2024-01-26 22:59:10 +08:00
geekan
59afc5301f
update token counter
2024-01-26 15:08:08 +08:00
geekan
cfadd54a3a
Update token_counter.py
2024-01-26 15:02:34 +08:00
Arnaud Gelas
6a9bd4a391
Do not try installing requirements if there are none
...
Do not try running pip install -r requirements.txt if the file does not
exist or is empty. It avoids seeing an error in the log.
2024-01-22 08:02:53 +01:00
Arnaud Gelas
b4e09341b3
Stop generating unit test for non python files
...
When trying to create a simple HelloWorld with test, metagpt creates
test for README.md
2024-01-22 07:57:42 +01:00
mannaandpoem
e1b783ca14
Merge branch 'main' into incremental_development
...
# Conflicts:
# metagpt/schema.py
2024-01-19 19:53:17 +08:00
mannaandpoem
4bb9c006c2
update test case of ActionNode
2024-01-19 19:41:38 +08:00
mannaandpoem
12b9f51abf
update _watch in engineer.py
2024-01-19 16:00:59 +08:00
mannaandpoem
134791ca35
1. update mode from "guide" to "incremental" in get_codes function of write_code.py
...
2. update _new_code_plan_and_change_action function
2024-01-19 15:18:54 +08:00
mannaandpoem
69ad2f4147
update mode from "guide" to "incremental" in get_codes function of write_code.py
2024-01-19 14:53:19 +08:00
mannaandpoem
81b59bfe0d
update CodePlanAndChangeContext
2024-01-19 14:44:06 +08:00
mannaandpoem
1959743d0b
update write_code_plan_and_change_an.py and add it to _think and _act process
2024-01-19 13:36:38 +08:00
mannaandpoem
95ccd980f8
1. rename and modify plan to code plan and change
...
2. modify name of ActionNode instance
2024-01-19 11:26:58 +08:00
mannaandpoem
42565c39e3
1. rename and modify guideline to plan
...
2. update prompt in ActionNode
3. add code comment
4. refactor Guideline code structure
2024-01-19 10:15:18 +08:00
mannaandpoem
5190dc4462
1. rename and modify guideline to plan
...
2. update prompt in ActionNode
3. add code comment
4. refactor Guideline code structure
2024-01-19 09:03:24 +08:00
geekan
af018a84e5
Merge pull request #765 from arnaudgelas/fix/crash
...
In some cases when trying to create tests, metagpt crashes.
2024-01-18 19:22:56 +08:00
mannaandpoem
6fb48664cb
replace REQUIRED_PYTHON_PACKAGES.key to "Required Python packages"
2024-01-18 15:18:29 +08:00
mannaandpoem
2bc88cd71b
update function of save code_guideline file
2024-01-18 10:15:36 +08:00
mannaandpoem
db086e47e7
modify: get value of ActionNode by key of ActionNode
2024-01-18 09:42:09 +08:00
mannaandpoem
a6d56bd748
1. add mock.py in tests\data\incremental_dev_project
...
2. add mock for test case of ActionNode
3. add path of Guideline file in const.py
4. update engineer.py
2024-01-17 18:47:59 +08:00
better629
4e13eaca6e
update zhipu api due to new model and api; repair extra invalid generate output; update its unittest
2024-01-17 16:28:13 +08:00
mannaandpoem
6c954b8455
update context in write_code_review.py
2024-01-17 11:40:16 +08:00
Arnaud Gelas
03012a81fd
In some cases when trying to create tests, metagpt crashes.
...
Adding some more safeguard to handle the case where code_doc is None.
2024-01-16 21:44:45 +01:00
mannaandpoem
f4e39a462c
1. remove INC prompt in some ActionNode
...
2. replace Code archive from data to tests/data/incremental_dev_project
3. update test case for ActionNode
2024-01-16 15:42:48 +08:00
geekan
bdf9d224b5
Merge pull request #743 from arnaudgelas/fix/qa_engineer_language
...
Constrain the language for the qa_engineer
2024-01-15 13:31:53 +08:00
geekan
6420481c70
Merge pull request #744 from arnaudgelas/fix/requirements
...
Fix: requirements.txt was not written to the disk
2024-01-15 13:31:26 +08:00
Arnaud Gelas
34b3de1f86
When setting the max budget, I don't want to overcome this limit
2024-01-13 16:10:46 +01:00
Arnaud Gelas
d340738013
Even if you set an investment, the default investment shows in the log
2024-01-13 15:53:01 +01:00
Arnaud Gelas
1238c48451
Fix: requirements.txt was not written to the disk
...
While the Python packages requirements are correctly detected and saved
into the json task file, requirements.txt was always empty. Since it was
trying to get packages with the wrong key, packages were always empty
when writing in requirements.txt
2024-01-13 15:14:38 +01:00
Arnaud Gelas
8d1bc25def
Constrain the language for the qa_engineer
...
The qa_engineer was generating chinese texts and comments while the rest
of the project was in English.
2024-01-13 14:49:50 +01:00
mannaandpoem
d077605720
Update product_requirement_pool to product_requirement_pools
2024-01-13 08:51:35 +08:00
mannaandpoem
b7adb1dc7d
Update prompt and code comment in ActionNode
2024-01-12 22:12:16 +08:00
mannaandpoem
684d10bb24
1. Remove PRD when write code
2024-01-12 20:38:23 +08:00
mannaandpoem
a363691c38
1. add guideline in context of write_code_review.py
...
2. update prompt
2024-01-12 17:33:15 +08:00
mannaandpoem
3848596b0f
update prompt
2024-01-11 14:04:44 +08:00
better629
17479a2360
fix system_prompt param that llm not support from issue 725
2024-01-10 11:26:23 +08:00
kkdev163
bd2b1950eb
optimize: access to is_human
2024-01-08 22:29:17 +08:00
kkdev163
6cde039f7f
fixbug: role init with is_human=True was not work
2024-01-08 17:45:44 +08:00
莘权 马
af378e12ac
fixbug: an unexpected UserRequirement type message is thrown when there is nothing to do.
2024-01-06 23:39:41 +08:00
geekan
230192f5e0
Merge pull request #685 from garylin2099/llm_mock
...
Reduce test time with a global LLM mock
2024-01-05 17:11:25 +08:00
shenchucheng
9ce0182fab
Log newline character after receiving llm stream response
2024-01-05 16:50:03 +08:00
yzlin
a3dc6aa7e3
Merge branch 'main' into llm_mock
2024-01-05 15:28:03 +08:00
莘权 马
4eab58f069
fixbug: .well_known
2024-01-05 15:06:40 +08:00
yzlin
1249d12b6f
add openai api call switch; fix ocr
2024-01-05 14:34:44 +08:00
莘权 马
43d07de810
feat: Replace the actual root directory name of the project codes with a fake one in the WriteTest prompt.
2024-01-05 11:02:41 +08:00