Skip to content

🌟 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.example
index 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.yaml
index 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_url
post:
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.yaml
index 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_url
parameters:
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.py
index 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."),