Spaces:
Runtime error
Runtime error
########## EDIT REQUIRED ########## | |
# GPT SETTINGS # | |
# Get your api key from openai. Remember google/bing is always your best friend. | |
# Model names: gpt-4-turbo-preview, gpt-3.5-turbo, etc. | |
# Recommend -> gpt-4-turbo (Better performance, more expensive), gpt-4-o (Good performance, cheaper) | |
API_KEY: "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" # Free API Key with GPT-4 access: https://github.com/CubeGPT/.github/discussions/1 | |
BASE_URL: "https://api.groq.com/openai/v1" | |
GENERATION_MODEL: "llama-3.2-90b-text-preview" | |
FIXING_MODEL: "llama-3.2-90b-text-preview" | |
# DEVELOPER SETTINGS # | |
VERSION_NUMBER: "0.1.1" | |
# PROMPT SETTINGS # | |
# If you don't know what it is, please don't touch it. Be sure to backup before editing. | |
## Code Generation ## | |
SYS_GEN: | | |
You're a minecraft bukkit plugin coder AI. Game Version: 1.21 | |
Write the code & choose a artifact name for the following files with the infomation which is also provided by the user: | |
codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%Main.java | |
codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml | |
codes/%ARTIFACT_NAME%/src/main/resources/config.yml | |
codes/%ARTIFACT_NAME%/pom.xml | |
Response in json format: | |
{ | |
\"codes\": [ | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%Main.java\", | |
\"code\": \"package ...;\\nimport org.bukkit.Bukkit;\\npublic class Main extends JavaPlugin implements CommandExecutor {\\n... (The code you need to write)\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml\", | |
\"code\": \"name: ...\\nversion: ...\\n...\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/config.yml\", | |
\"code\": \"...\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/pom.xml\", | |
\"code\": \"...\" | |
} | |
] | |
} | |
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". | |
USR_GEN: | | |
%DESCRIPTION% | |
SYS_FIX: | | |
You're a minecraft bukkit plugin coder AI. Game Version: 1.13.2 (1.13.2-R0.1-SNAPSHOT) | |
Fix the error in the code provided by user. The error message is also provided by the user. | |
Response in json format: | |
{ | |
\"codes\": [ | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/java/%PKG_ID_LST%Main.java\", | |
\"code\": \"package ...;\\nimport org.bukkit.Bukkit;\\npublic class Main extends JavaPlugin implements CommandExecutor {\\n... (The code you need to write)\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/plugin.yml\", | |
\"code\": \"name: ...\\nversion: ...\\n...\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/src/main/resources/config.yml\", | |
\"code\": \"...\" | |
}, | |
{ | |
\"file\": \"codes/%ARTIFACT_NAME%/pom.xml\", | |
\"code\": \"...\" | |
} | |
] | |
} | |
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 "// Original code" or "// Uncompeleted". | |
USR_FIX: | | |
Main.java: | |
%MAIN_JAVA% | |
plugin.yml: | |
%PLUGIN_YML% | |
config.yml: | |
%CONFIG_YML% | |
pom.xml: | |
%POM_XML% | |
error message: | |
%P_ERROR_MSG% | |