diff --git a/README.md b/README.md index d3a035abe..f4b04a5fd 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ ### Pip installation ```bash pip install metagpt -metagpt --init-config # create ~/.metagpt/config2.yaml, modify it to your own config +metagpt --init-config # it will create ~/.metagpt/config2.yaml, just modify it to your needs metagpt "Create a 2048 game" # this will create a repo in ./workspace ``` diff --git a/config/config2.yaml.example b/config/config2.yaml.example index 2217f1b2c..eb1721625 100644 --- a/config/config2.yaml.example +++ b/config/config2.yaml.example @@ -1,10 +1,12 @@ llm: - api_type: "openai" # or azure / ollama etc. + api_type: "openai" # or azure / ollama / open_llm etc. Check LLMType for more options base_url: "YOUR_BASE_URL" api_key: "YOUR_API_KEY" model: "gpt-4-turbo-preview" # or gpt-3.5-turbo-1106 / gpt-4-1106-preview + repair_llm_output: true # when the output is not a valid json, try to repair it + proxy: "YOUR_PROXY" # for LLM API requests -proxy: "YOUR_PROXY" +proxy: "YOUR_PROXY" # for tools like requests, playwright, selenium, etc. search: api_type: "google" @@ -41,5 +43,3 @@ iflytek_api_key: "YOUR_API_KEY" iflytek_api_secret: "YOUR_API_SECRET" metagpt_tti_url: "YOUR_MODEL_URL" - -repair_llm_output: true diff --git a/docs/scripts/coverage.sh b/docs/scripts/coverage.sh index a56571399..22e479200 100755 --- a/docs/scripts/coverage.sh +++ b/docs/scripts/coverage.sh @@ -1 +1 @@ -coverage run --source ./metagpt -m pytest --durations=0 --timeout=100 && coverage report -m && coverage html && open htmlcov/index.html +coverage run --source ./metagpt -m pytest -n 8 --durations=0 --timeout=100 && coverage report -m && coverage html && open htmlcov/index.html