Skip to content

Commit

Permalink
Different prompt for rematch games
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelseeger committed Dec 28, 2024
1 parent 85315a0 commit 1184d11
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions coach.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,16 @@ def initiate_from_game_start(self, map, opponent, mmr):

if len(past_replays) > 0:
if past_replays[0].id == self.last_rep_id:
pass
replacements["replays"] = [
r.default_projection_json(limit=300) for r in past_replays[:5]
]
prompt = Templates.scanner.render(replacements)
replacements["replays"] = [
past_replays[0].default_projection_json(limit=300)
]
prompt = Templates.rematch.render(replacements)
else:
replacements["replays"] = [
r.default_projection_json(limit=300) for r in past_replays[:5]
]
prompt = Templates.scanner.render(replacements)

self.thread_id = self.coach.create_thread(prompt)
else:
self.say(Templates.scanner_empty.render(replacements), flush=False)
Expand Down

0 comments on commit 1184d11

Please sign in to comment.