mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
update config.yaml
mv ui_role to tests/metagpt/role
This commit is contained in:
parent
fe0c06dd5e
commit
e006737903
4 changed files with 8 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue