Skip to content

Commit

Permalink
AI chat: Cdebug llm now always uses debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Nov 22, 2024
1 parent 7f9ed83 commit 12ed638
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion playerbot/strategy/actions/DebugAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ bool DebugAction::Execute(Event& event)

std::string json = BOT_TEXT2(sPlayerbotAIConfig.llmApiJson, jsonFill);

std::string response = PlayerbotLLMInterface::Generate(json);
std::vector<std::string> debugLines = { json };

std::string response = PlayerbotLLMInterface::Generate(json, debugLines);

for(auto line : debugLines)
ai->TellPlayerNoFacing(requester, line, PlayerbotSecurityLevel::PLAYERBOT_SECURITY_ALLOW_ALL, true, false);

ai->TellPlayerNoFacing(requester, response, PlayerbotSecurityLevel::PLAYERBOT_SECURITY_ALLOW_ALL, true, false);
return true;
}
Expand Down

0 comments on commit 12ed638

Please sign in to comment.