AI: 게임 시작 때 모델 미리 올리기, 2시간 유지
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -207,6 +207,8 @@ export class BotBrain {
|
||||
|
||||
onGameStart(): void {
|
||||
this.happened = [];
|
||||
// A game with computers and people: make sure the model is loaded before anyone talks.
|
||||
if (this.llm?.available() && this.room.humans().length && this.room.bots().length) void this.llm.warm();
|
||||
if (!this.enabled() || this.room.gameId() === 'mafia' || this.random() > 0.7) return;
|
||||
const bots = this.room.bots();
|
||||
const bot = bots[Math.floor(this.random() * bots.length)];
|
||||
|
||||
Reference in New Issue
Block a user