Feat: add logjournal to room

This commit is contained in:
Grail Finder
2025-06-22 12:18:16 +03:00
parent f7ebee8fb0
commit 07c4d9295d
3 changed files with 10 additions and 14 deletions

View File

@ -50,6 +50,14 @@
{{template "teamlist" .Room.RedTeam}}
</div>
<hr />
<div id="systembox">
Server says: <br>
<ul>
{{range .Room.LogJournal}}
<li>{{.}}</li>
{{end}}
</ul>
</div>
<div id="cardtable">
{{template "cardtable" .Room}}
</div>

View File

@ -40,20 +40,6 @@ type DSResp struct {
Object string `json:"object"`
}
// type LLMResp struct {
// Choices []struct {
// FinishReason string `json:"finish_reason"`
// Index int `json:"index"`
// Message struct {
// Content string `json:"content"`
// Role string `json:"role"`
// } `json:"message"`
// } `json:"choices"`
// Created int `json:"created"`
// Model string `json:"model"`
// Object string `json:"object"`
// }
type LLMResp struct {
Index int `json:"index"`
Content string `json:"content"`

View File

@ -84,6 +84,8 @@ type Room struct {
// ProgressPct uint32 `json:"progress_pct"`
IsOver bool
TeamWon UserTeam // blue | red
// needed for debug
LogJournal []string
}
func (r *Room) CanStart() error {