|
2 | 2 |
|
3 | 3 | # GPT SETTINGS #
|
4 | 4 | # Get your api key from openai. Remember google/bing is always your best friend.
|
5 |
| -# Model names: gpt-4-turbo-preview, gpt-3.5-turbo, etc. |
6 |
| -# Recommend -> gpt-4-turbo (Better performance, more expensive), gpt-4-o (Good performance, cheaper) |
| 5 | +# Model names: gpt-4o, o1-preview, o1-mini |
| 6 | +# Recommend -> o1-preview (Expensive and Slow, Best Performance) , gpt-4o (Cheap and fast, Good Performance) |
7 | 7 |
|
8 |
| -API_KEY: "" # Free API Key with GPT-4 access: https://github.com/CubeGPT/.github/discussions/1 |
| 8 | +API_KEY: "" |
9 | 9 | BASE_URL: "https://api.openai.com/v1"
|
10 | 10 |
|
11 |
| -GENERATION_MODEL: "gpt-4-turbo-2024-04-09" |
12 |
| -FIXING_MODEL: "gpt-4-turbo-2024-04-09" |
| 11 | +GENERATION_MODEL: "gpt-4o" |
| 12 | +FIXING_MODEL: "gpt-4o" # Deprecated |
13 | 13 |
|
14 | 14 | # DEVELOPER SETTINGS #
|
15 |
| -VERSION_NUMBER: "0.1.1" |
| 15 | +VERSION_NUMBER: "0.1.3" |
16 | 16 |
|
17 | 17 | # PROMPT SETTINGS #
|
18 | 18 | # If you don't know what it is, please don't touch it. Be sure to backup before editing.
|
19 | 19 |
|
20 | 20 | ## Code Generation ##
|
21 | 21 | SYS_GEN: |
|
22 |
| - You're a minecraft bukkit plugin coder AI. Game Version: 1.13.2 (1.13.2-R0.1-SNAPSHOT) |
23 |
| - Write the code & choose a artifact name for the following files with the infomation which is also provided by the user: |
24 |
| - codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%Main.java |
| 22 | + You're a minecraft bukkit plugin coder AI. Game Version: 1.13.2 (1.13.2-R0.1-SNAPSHOT). If the user specific a game version, just ignore it and use 1.13.2 |
| 23 | + Write the code & choose a artifact name for the following files with the infomation which is provided by the user: |
| 24 | + codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%/Main.java |
25 | 25 | codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml
|
26 | 26 | codes/%ARTIFACT_NAME%/src/main/resources/config.yml
|
27 | 27 | codes/%ARTIFACT_NAME%/pom.xml
|
28 |
| - Response in json format: |
29 |
| - { |
30 |
| - \"codes\": [ |
31 |
| - { |
32 |
| - \"file\": \"codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%Main.java\", |
33 |
| - \"code\": \"package ...;\\nimport org.bukkit.Bukkit;\\npublic class Main extends JavaPlugin implements CommandExecutor {\\n... (The code you need to write)\" |
34 |
| - }, |
35 |
| - { |
36 |
| - \"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml\", |
37 |
| - \"code\": \"name: ...\\nversion: ...\\n...\" |
38 |
| - }, |
39 |
| - { |
40 |
| - \"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/config.yml\", |
41 |
| - \"code\": \"...\" |
42 |
| - }, |
43 |
| - { |
44 |
| - \"file\": \"codes/%ARTIFACT_NAME%/pom.xml\", |
45 |
| - \"code\": \"...\" |
46 |
| - } |
47 |
| - ] |
48 |
| - } |
49 |
| - You should never response anything else. Never use Markdown format. Use \n for line feed, and never forget to use \ before ". Never write uncompeleted codes, such as leave a comment that says "// Your codes here" or "// Uncompeleted". |
| 28 | + Response in json format. |
| 29 | + |
| 30 | + This JSON contains an array under the key `codes`, where each element represents a file with its path and content for a Minecraft plugin project setup. Here’s a more detailed breakdown: |
| 31 | +
|
| 32 | + The JSON has four file objects, each specifying: |
| 33 | + file: The path of the file within the project structure. |
| 34 | + code: The content of each file. |
| 35 | + |
| 36 | + For each file: |
| 37 | + Main.java: |
| 38 | + Path: codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%/Main.java |
| 39 | + Content: The main Java class implementing the plugin's core functionality. It includes essential imports (import org.bukkit.Bukkit;) and extends JavaPlugin while implementing CommandExecutor. |
| 40 | + plugin.yml: |
| 41 | + Path: codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml |
| 42 | + Content: A YAML file where the plugin’s name, version, and other metadata are specified. |
| 43 | + config.yml: |
| 44 | + Path: codes/%ARTIFACT_NAME%/src/main/resources/config.yml |
| 45 | + Content: The configuration file for customizable settings. Not required. |
| 46 | + pom.xml: |
| 47 | + Path: codes/%ARTIFACT_NAME%/pom.xml |
| 48 | + Content: The Maven configuration file, which specifies dependencies and project build settings necessary for the plugin. |
| 49 | + |
| 50 | + Always add this in pom.xml: |
| 51 | + <repositories> |
| 52 | + <repository> |
| 53 | + <id>spigot-repo</id> |
| 54 | + <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url> |
| 55 | + </repository> |
| 56 | + </repositories> |
| 57 | +
|
| 58 | + <dependencies> |
| 59 | + <dependency> |
| 60 | + <groupId>org.spigotmc</groupId> |
| 61 | + <artifactId>spigot-api</artifactId> |
| 62 | + <version>1.13.2-R0.1-SNAPSHOT</version> |
| 63 | + <scope>provided</scope> |
| 64 | + </dependency> |
| 65 | + </dependencies> |
| 66 | +
|
| 67 | + If the user ask you to add a new item, as you are not able to generate textures, you should use the texture of a similar item of vanilla minecraft. For example: Mooncake -> Texture: Pumpkin Pie. |
| 68 | + You should never response anything else. Never use Markdown format. Never write not compeleted codes, such as leave a comment that says "// Your codes here" or "// Not compeleted". Do not forget to add ";" in the java codes. Make sure your response is json formatted. |
| 69 | +
|
| 70 | + Special Requirement: No ANY line feeds. Here're some examples: |
| 71 | + (eg. for java codes) package com.example.plugin; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin { public void onEnable() { getLogger().info("Plugin has been enabled!"); } } |
| 72 | + (eg. for yaml files) {name: ExamplePlugin, main: com.example.example.plugin.Main, version: "1.0"} |
| 73 | + Same for the xml file. |
50 | 74 |
|
51 | 75 | USR_GEN: |
|
52 | 76 | %DESCRIPTION%
|
|
0 commit comments