Random niceties to make prompting easier
This commit is contained in:
parent
c7c903ec61
commit
bdee423d27
10
go
10
go
@ -17,6 +17,16 @@
|
||||
docker build -t itbaas .
|
||||
}
|
||||
|
||||
⚡️message() {
|
||||
_help-line "Send message to llm in docker"
|
||||
docker exec breach curl -sX post localhost:5000/prompt-in-context -d "$@"
|
||||
}
|
||||
|
||||
⚡️reset() {
|
||||
_help-line "Reset the llm message history"
|
||||
docker exec breach curl -s localhost:5000/reset
|
||||
}
|
||||
|
||||
extract_assets() {
|
||||
7z x -aos -o.generated/game/ assets/Into_the_Breach_Linux.1.2.23.zip
|
||||
}
|
||||
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user