🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
refactor config
geekan62ca2ca90d58
diff --git a/config/config2.yaml.example b/config/config2.yaml.exampleindex 7c523fe7d..763412542 100644--- a/config/config2.yaml.example+++ b/config/config2.yaml.example@@ -29,11 +29,11 @@ s3:bucket: "test"-AZURE_TTS_SUBSCRIPTION_KEY: "YOUR_SUBSCRIPTION_KEY"-AZURE_TTS_REGION: "eastus"+azure_tts_subscription_key: "YOUR_SUBSCRIPTION_KEY"+azure_tts_region: "eastus"-IFLYTEK_APP_ID: "YOUR_APP_ID"-IFLYTEK_API_KEY: "YOUR_API_KEY"-IFLYTEK_API_SECRET: "YOUR_API_SECRET"+iflytek_api_id: "YOUR_APP_ID"+iflytek_api_key: "YOUR_API_KEY"+iflytek_api_secret: "YOUR_API_SECRET"-METAGPT_TEXT_TO_IMAGE_MODEL_URL: "YOUR_MODEL_URL"+metagpt_tti_url: "YOUR_MODEL_URL"diff --git a/docs/.well-known/metagpt_oas3_api.yaml b/docs/.well-known/metagpt_oas3_api.yamlindex 0a702e8b6..720e4a41a 100644--- a/docs/.well-known/metagpt_oas3_api.yaml+++ b/docs/.well-known/metagpt_oas3_api.yaml@@ -247,7 +247,7 @@ paths:description: "Model url."required:allOf:- - METAGPT_TEXT_TO_IMAGE_MODEL_URL+ - metagpt_tti_urlpost:summary: "Text to Image"description: "Generate an image from the provided text using the MetaGPT Text-to-Image API."diff --git a/docs/.well-known/skills.yaml b/docs/.well-known/skills.yamlindex c19a9501e..a14571926 100644--- a/docs/.well-known/skills.yaml+++ b/docs/.well-known/skills.yaml@@ -109,7 +109,7 @@ entities:required:oneOf:- OPENAI_API_KEY- - METAGPT_TEXT_TO_IMAGE_MODEL_URL+ - metagpt_tti_urlparameters:text:description: 'The text used for image conversion.'diff --git a/tests/metagpt/actions/test_skill_action.py b/tests/metagpt/actions/test_skill_action.pyindex 2ebe79b30..d667d6d70 100644--- a/tests/metagpt/actions/test_skill_action.py+++ b/tests/metagpt/actions/test_skill_action.py@@ -23,9 +23,9 @@ class TestSkillAction:"type": "string","description": "OpenAI API key, For more details, checkout: `https://platform.openai.com/account/api-keys`",},- "METAGPT_TEXT_TO_IMAGE_MODEL_URL": {"type": "string", "description": "Model url."},+ "metagpt_tti_url": {"type": "string", "description": "Model url."},},- "required": {"oneOf": ["OPENAI_API_KEY", "METAGPT_TEXT_TO_IMAGE_MODEL_URL"]},+ "required": {"oneOf": ["OPENAI_API_KEY", "metagpt_tti_url"]},},parameters={"text": Parameter(type="string", description="The text used for image conversion."),