Skip to content

Commit df200dd

Browse files
committed
feat: Add configs for advanced mode
1 parent 9865be0 commit df200dd

File tree

1 file changed

+84
-3
lines changed

1 file changed

+84
-3
lines changed

config.yaml

+84-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,34 @@
1+
########## EDIT REQUIRED ##########
2+
13
# GPT SETTINGS #
2-
# EDIT REQUIRED
34
# Get your api key from openai. Remember google/bing is always your best friend.
45
# Model names: gpt-4-turbo-preview, gpt-3.5-turbo, etc.
56
# Recommend -> gpt-4-turbo-preview, which codes more accurately and is less likely to write bugs, but is more expensive.
67

7-
API_KEY: ""
8+
API_KEY: "" # Free API Key with GPT-4 access: https://github.com/CubeGPT/.github/discussions/1
89
BASE_URL: "https://api.openai.com/v1/chat/completions"
9-
GENERATE_MODEL: "gpt-4-turbo-2024-04-09" # Don't use gpt-4, because this model is longer supports json modes.
10+
11+
GENERATE_MODEL: "gpt-4-turbo-preview" # Don't use gpt-4, because this model is longer supports json modes.
12+
13+
14+
# ADVANCED MODE #
15+
# This mode is experimental. But we highly recommend you to enable this mode for better performance.
16+
ADVANCED_MODE: True
17+
IMAGE_GENERATION_MODEL: "dall-e-3"
18+
IMAGE_SIZE: "1024x1024"
19+
VISION_MODEL: "gpt-4-vision-preview"
20+
21+
# Note: If you are using the free API key above, you can't use the advanced mode since it doesn't support dall-e-3 and gpt-4-vision-preview models.
22+
USE_DIFFERENT_APIKEY_FOR_DALLE_MODEL: False
23+
DALLE_API_KEY: ""
24+
DALLE_BASE_URL: "https://api.openai.com/v1/chat/completions"
25+
26+
USE_DIFFERENT_APIKEY_FOR_VISION_MODEL: False
27+
VISION_API_KEY: ""
28+
VISION_BASE_URL: "https://api.openai.com/v1/chat/completions"
29+
30+
31+
########## EDIT OPTIONAL ##########
1032

1133
# PROMPT SETTINGS #
1234
# If you don't know what it is, please don't touch it. Be sure to backup before editing.
@@ -48,6 +70,65 @@ SYS_GEN: |
4870
USR_GEN: |
4971
%DESCRIPTION%
5072
73+
## Advanced Mode ##
74+
75+
### Programme ###
76+
BTR_DESC_SYS_GEN: |
77+
You are an minecraft schematic designer. Your role is to design a programme based on the requirements sent to you by the user.
78+
For exmaple,
79+
User input: "A cafe."
80+
Response: "A small cafe with a modern design, red roof and brown door, big windows. Inside, there's two tables and a bar."
81+
82+
BTR_DESC_USR_GEN: |
83+
%DESCRIPTION%
84+
85+
### Image Tag Generation ###
86+
IMG_TAG_SYS_GEN: |
87+
You work for a minecraft schematic company and you need to use AI to generate the design image based on designer's architectural programme. Please response the tags you'd like to use for the image generation.
88+
Never response anything else.
89+
Example resposne: "A minecraft building with a modern design, red roof and brown door, big windows."
90+
91+
IMG_TAG_USR_GEN: |
92+
Designer's programme: %PROGRAMME%
93+
94+
### Stucture Generation (Advanced with gpt-4-vision) ###
95+
SYS_GEN_ADV: |
96+
You are a minecraft structure builder bot. You should design a building or a structure based on designer's architectural programme AND the design image.
97+
Response in json like this:
98+
{
99+
"materials": [
100+
"A: \"minecraft:air\"",
101+
"S: \"minecraft:stone\""
102+
],
103+
"structures": [
104+
{
105+
"floor": 0,
106+
"structure": "SSSSSSSS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSSSSSSSS"
107+
},
108+
{
109+
"floor": 1,
110+
"structure": "SSGGGGSS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSSSSSSSS"
111+
},
112+
{
113+
"floor": 2,
114+
"structure": "SSGGGGSS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSSSSSSSS"
115+
},
116+
{
117+
"floor": 3,
118+
"structure": "SSSSSSSS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSAAAAAAS\nSSSSSSSS"
119+
},
120+
{
121+
"floor": 4,
122+
"structure": "SSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\nSSSSSSSS\n"
123+
}
124+
]
125+
}
126+
Never response anything else. Do not design a building which is too large (more than 10 floors). Never use markdown format. Use \n for line feed.
127+
128+
USR_GEN_ADV: |
129+
%DESCRIPTION%
130+
The image is attached below.
131+
51132
# Developer Settings #
52133
DEBUG_MODE: True
53134
VERSION_NUMBER: "Alpha-1.0" #NEVER EDIT THIS IF YOU DON'T KNOW WHAT ARE YOU DOING

0 commit comments

Comments
 (0)