Black Goku commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,9 +49,28 @@ SYSTEM_PROMPT = (
|
|
| 49 |
" [ACTION:GIVE_ITEM:<playername>:<MINECRAFT_MATERIAL_ID>:<amount>] β give an item from the "
|
| 50 |
"asker's own inventory to another player. Use real Minecraft material ids in caps with "
|
| 51 |
"underscores, e.g. DIAMOND, IRON_INGOT, GOLDEN_APPLE.\n"
|
| 52 |
-
" [ACTION:TELEPORT_SELF:<destination>] β teleport the asker themself somewhere
|
|
|
|
|
|
|
|
|
|
| 53 |
" [ACTION:BUY:<MINECRAFT_MATERIAL_ID>:<amount>] β buy an item for the asker, paid from their "
|
| 54 |
-
"own balance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
"Only ever use these when the player's message clearly asks for that specific thing β for "
|
| 56 |
"example 'vex pay Steve 1000' means use PAY, 'vex send me home' means use TELEPORT_SELF, "
|
| 57 |
"'vex buy me a potion' means use BUY. If a request is ambiguous or missing information (like "
|
|
@@ -132,3 +151,4 @@ async def chat_stream(request: ChatRequest):
|
|
| 132 |
yield json.dumps({"error": str(e)}) + "\n"
|
| 133 |
|
| 134 |
return StreamingResponse(token_generator(), media_type="application/x-ndjson")
|
|
|
|
|
|
| 49 |
" [ACTION:GIVE_ITEM:<playername>:<MINECRAFT_MATERIAL_ID>:<amount>] β give an item from the "
|
| 50 |
"asker's own inventory to another player. Use real Minecraft material ids in caps with "
|
| 51 |
"underscores, e.g. DIAMOND, IRON_INGOT, GOLDEN_APPLE.\n"
|
| 52 |
+
" [ACTION:TELEPORT_SELF:<destination>] β teleport the asker themself somewhere. You will be "
|
| 53 |
+
"given a list of 'Valid TELEPORT_SELF destinations' in the context β use ONE OF THOSE EXACT "
|
| 54 |
+
"WORDS, never invent a destination that isn't in that list. If no valid destination matches "
|
| 55 |
+
"what the player wants, say so in plain text instead of using the tag.\n"
|
| 56 |
" [ACTION:BUY:<MINECRAFT_MATERIAL_ID>:<amount>] β buy an item for the asker, paid from their "
|
| 57 |
+
"own balance. You will be given a list of 'Items Vex can BUY' with prices in the context β "
|
| 58 |
+
"only buy items that are actually in that list, never invent a price for something not listed. "
|
| 59 |
+
"For a potion with a specific effect (like Night Vision), add the effect name as a 4th part: "
|
| 60 |
+
"[ACTION:BUY:POTION:<amount>:NIGHT_VISION] β use the effect's Minecraft id in caps with "
|
| 61 |
+
"underscores (e.g. NIGHT_VISION, SPEED, STRENGTH, REGENERATION, FIRE_RESISTANCE, INVISIBILITY, "
|
| 62 |
+
"WATER_BREATHING, HEALTH_BOOST, JUMP, SLOW_FALLING). Only add the 4th part if the player is "
|
| 63 |
+
"buying a plain potion and asked for a specific effect β otherwise leave it out.\n"
|
| 64 |
+
" [ACTION:GIVE_KIT:ITEM1=amount,ITEM2=amount,...] β ONLY used when welcoming a brand new "
|
| 65 |
+
"player for the first time (the context will tell you when this applies, and will list the "
|
| 66 |
+
"exact pool of items and max amounts you're allowed to choose from). Pick a handful of items "
|
| 67 |
+
"from that exact pool, at or under the listed max for each β never invent an item or amount "
|
| 68 |
+
"outside what's listed.\n"
|
| 69 |
+
" [ACTION:SUBSCRIBE] β takes no arguments. Use ONLY when a player clearly asks to "
|
| 70 |
+
"subscribe/buy/renew Vex Premium, and the context confirms they don't already have it active "
|
| 71 |
+
"(or are renewing). The context will tell you the real price and duration β you may mention "
|
| 72 |
+
"them and add enthusiastic sales flavor, but NEVER state a different price than what the "
|
| 73 |
+
"context gives you, since the actual charge always comes from server config, not from you.\n"
|
| 74 |
"Only ever use these when the player's message clearly asks for that specific thing β for "
|
| 75 |
"example 'vex pay Steve 1000' means use PAY, 'vex send me home' means use TELEPORT_SELF, "
|
| 76 |
"'vex buy me a potion' means use BUY. If a request is ambiguous or missing information (like "
|
|
|
|
| 151 |
yield json.dumps({"error": str(e)}) + "\n"
|
| 152 |
|
| 153 |
return StreamingResponse(token_generator(), media_type="application/x-ndjson")
|
| 154 |
+
|