mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-21 21:52:07 +02:00
cleaned logs
This commit is contained in:
parent
44c0526231
commit
4923083252
2 changed files with 1 additions and 3 deletions
|
@ -172,7 +172,7 @@ async function _scheduleProcessInMessage(sender, recieved, convo) {
|
|||
else if (!agent.isIdle()) {
|
||||
// I'm busy but other bot isn't
|
||||
let shouldRespond = await agent.prompter.promptShouldRespondToBot(recieved.message);
|
||||
console.log(`${agent.name} decision to respond: ${shouldRespond}`);
|
||||
console.log(`${agent.name} decided to ${shouldRespond?'respond':'not respond'} to ${sender}`);
|
||||
if (shouldRespond)
|
||||
scheduleResponse(fastDelay);
|
||||
}
|
||||
|
|
|
@ -268,9 +268,7 @@ export class Prompter {
|
|||
let messages = this.agent.history.getHistory();
|
||||
messages.push({role: 'user', content: new_message});
|
||||
prompt = await this.replaceStrings(prompt, null, null, messages);
|
||||
console.log('Full bot responder prompt:', prompt);
|
||||
let res = await this.chat_model.sendRequest([], prompt);
|
||||
console.log('Bot responder response:', res);
|
||||
return res.trim().toLowerCase() === 'respond';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue