diff --git a/config/config.yaml b/config/config.yaml index 18b84d790..fbd9aa81e 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -1,4 +1,3 @@ - # DO NOT MODIFY THIS FILE, create a new key.yaml, define OPENAI_API_KEY. # The configuration of key.yaml has a higher priority and will not enter git @@ -10,6 +9,9 @@ OPENAI_API_MODEL: "gpt-4" MAX_TOKENS: 1500 RPM: 10 +#### if Anthropic +#Anthropic_API_KEY: "YOUR_API_KEY" + #### if AZURE, check https://github.com/openai/openai-cookbook/blob/main/examples/azure/chat.ipynb #OPENAI_API_TYPE: "azure" @@ -27,12 +29,14 @@ RPM: 10 ## Visit https://programmablesearchengine.google.com/controlpanel/create to get id. #GOOGLE_CSE_ID: "YOUR_CSE_ID" ## Visit https://serper.dev/ to get key. +#SERPER_API_KEY: "YOUR_API_KEY" #### for TTS #AZURE_TTS_SUBSCRIPTION_KEY: "YOUR_API_KEY" #AZURE_TTS_REGION: "eastus" -#### for SD +#### for Stable Diffusion +## Use SD service, based on https://github.com/AUTOMATIC1111/stable-diffusion-webui SD_URL: "YOUR_SD_URL" SD_T2I_API: "/sdapi/v1/txt2img" diff --git a/tests/metagpt/actions/test_ui_design.py b/tests/metagpt/actions/test_ui_design.py index e01b90477..d284b20f2 100644 --- a/tests/metagpt/actions/test_ui_design.py +++ b/tests/metagpt/actions/test_ui_design.py @@ -2,7 +2,7 @@ # @Date : 2023/7/22 02:40 # @Author : stellahong (stellahong@fuzhi.ai) # -from examples.ui_role import UIDesign +from tests.metagpt.roles.ui_role import UIDesign llm_resp= ''' # UI Design Description diff --git a/tests/metagpt/roles/test_ui.py b/tests/metagpt/roles/test_ui.py index 1e53936a1..285bff323 100644 --- a/tests/metagpt/roles/test_ui.py +++ b/tests/metagpt/roles/test_ui.py @@ -2,11 +2,10 @@ # @Date : 2023/7/22 02:40 # @Author : stellahong (stellahong@fuzhi.ai) # -import os from metagpt.software_company import SoftwareCompany from metagpt.roles import ProductManager -from examples.ui_role import UI +from tests.metagpt.roles.ui_role import UI def test_add_ui(): diff --git a/examples/ui_role.py b/tests/metagpt/roles/ui_role.py similarity index 100% rename from examples/ui_role.py rename to tests/metagpt/roles/ui_role.py