Commit graph

2318 commits

Author SHA1 Message Date
geekan
eb94c5f735
Merge pull request #785 from arnaudgelas/fix/prompt-logic
Fix prompt logic when defining to who the message should be sent.
2024-01-31 23:36:53 +08:00
geekan
d35527b0ba
Merge pull request #801 from pkdog/fix-zhipu
Refactor get_choice_delta_text for safer dict access while using ZHIPU API
2024-01-31 23:35:03 +08:00
程允权
a68c3442bc Refactor get_choice_delta_text for safer dict access 2024-01-28 13:49:31 +08:00
geekan
ee0801a116
Merge pull request #799 from HuZixia/huzixia
Solve JSONDecodeError
2024-01-28 10:27:34 +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
2361c7e8aa delete PR dir 2024-01-27 17:07:21 +08:00
huzixia
b9a03c380a Merge branch 'huzixia' of github.com:HuZixia/MetaGPT into huzixia
merge
2024-01-27 17:05:29 +08:00
huzixia
8b5f7848fa delete PR dir 2024-01-27 17:00:59 +08:00
huzixia
f16b247586 merge code with similar logic to avoid duplication 2024-01-27 15:32:12 +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
geekan
63b7a85b39
Merge pull request #775 from arnaudgelas/fix/test-generation
Fix test generation
2024-01-23 14:40:06 +08:00
Arnaud Gelas
91c5c72089 Fix prompt logic when defining to who the message should be sent.
With the previous logic, it was possible to reach an undefined state
where it was not meant to be sent to Engineer, QaEngineer, nor NoOne.
2024-01-22 20:10:11 +01: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
geekan
b5922d4979
Merge pull request #497 from mannaandpoem/incremental_development
add increment development function
2024-01-20 23:00:26 +08:00
mannaandpoem
e1b783ca14 Merge branch 'main' into incremental_development
# Conflicts:
#	metagpt/schema.py
2024-01-19 19:53:17 +08:00
mannaandpoem
bed3040ff3 Merge remote-tracking branch 'origin/incremental_development' into incremental_development 2024-01-19 19:41:55 +08:00
mannaandpoem
4bb9c006c2 update test case of ActionNode 2024-01-19 19:41:38 +08:00
mannaandpoem
39c00848b9 update test case of ActionNode 2024-01-19 19:39:59 +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
5389c52556
Update README.md 2024-01-18 23:34:46 +08:00
geekan
1460cff729
Update README.md 2024-01-18 23:07:43 +08:00
geekan
1f7567e3c4
Update README.md 2024-01-18 22:58:56 +08:00
Sirui Hong
de0db068c2
Update README.md
update trending history
2024-01-18 20:07:45 +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
Sirui Hong
89f92ffb87
Update README.md 2024-01-18 14:14:26 +08:00
mannaandpoem
2bc88cd71b update function of save code_guideline file 2024-01-18 10:15:36 +08:00
mannaandpoem
fe64b23a0e update test file of ActionNode 2024-01-18 10:01:33 +08:00
mannaandpoem
db086e47e7 modify: get value of ActionNode by key of ActionNode 2024-01-18 09:42:09 +08:00
geekan
297c2c0a02
Merge pull request #770 from better629/main
update zhipu api
2024-01-17 22:56:59 +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
Sirui Hong
bcd143d220
Update README.md
change paper link to arxiv
2024-01-17 13:48:44 +08:00
mannaandpoem
8831177a22 update test case in test_incremental_dev.py 2024-01-17 11:47:16 +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
Sirui Hong
75cbf9f087
Update README.md
update news
2024-01-17 01:52:01 +08:00
Sirui Hong
22c48449f4
Delete docs/resources/ICLR.jpg
delete img
2024-01-17 00:58:22 +08:00