refactor config

This commit is contained in:
geekan 2024-02-01 13:45:00 +08:00
parent f3cb2cfbed
commit 62ca2ca90d
4 changed files with 10 additions and 10 deletions

View file

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

View file

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