Revert "Added JSON and removed Base64"

This reverts commit 12fd8aeb70.
This commit is contained in:
Paulslewis66
2025-02-11 21:44:18 +00:00
parent 17ec8619e0
commit ae8c130a1b
2 changed files with 12 additions and 39 deletions

View File

@ -194,7 +194,7 @@ async def handle_client(process: asyncssh.SSHServerProcess, server: MySSHServer)
if process.command:
# Handle non-interactive command execution
command = process.command
logger.info("User input", extra={"details": command.encode('utf-8').decode('utf-8'), "interactive": False})
logger.info("User input", extra={"details": b64encode(command.encode('utf-8')).decode('utf-8'), "interactive": False})
llm_response = await with_message_history.ainvoke(
{
"messages": [HumanMessage(content=command)],