1
0

Random niceties to make prompting easier

This commit is contained in:
2024-10-09 12:10:30 -07:00
parent c7c903ec61
commit bdee423d27
3 changed files with 24 additions and 3 deletions

View File

@@ -62,9 +62,11 @@
const dt = document.createElement('dt');
dt.textContent = message.role;
const dd = document.createElement('dd');
dd.textContent = message.content[0].text || message.content[1].text;
const pre = document.createElement('pre');
pre.textContent = message.content[0].text || message.content[1].text;
definitionList.append(dt);
definitionList.append(dd);
dd.append(pre);
});
});
}

View File

@@ -63,10 +63,19 @@ def click(x, y):
@app.route('/ask-for-next-move')
def nextmove():
screenshot = game.screenshot()
return chatbot.prompt(
text = "we're playing Into the Breach. Describe the state of the board. Then tell me the best moves for our mechs to make.",
chatbot.prompt(
text = "We're playing Into the Breach. It's the start of a new turn. All units are on a grid rotated 45 degrees and coordinates labeled on the side. Identify the positions of all the units",
image = screenshot
)
chatbot.prompt(
text = "Identify the goals for this mission",
)
chatbot.prompt(
text = "Identify all immediate threats",
)
return chatbot.prompt(
text = "What information do you need to plan the next move?",
)
@app.route('/messages')
def messages():