tuning details

This commit is contained in:
geekan 2024-02-18 11:31:53 +08:00
parent edeb793e2f
commit 8c24c97a53
3 changed files with 6 additions and 6 deletions

View file

@ -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
```

View file

@ -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

View file

@ -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