This commit is contained in:
hueso 2025-03-06 21:01:18 -03:00
parent 4a136da7f6
commit 5520afe7ba

View File

@ -118,10 +118,10 @@ class OllamaBot(ClientXMPP):
if msg['body'] is not None:
log.write(f"{mfrom}: {msg['body']}\n")
if self.is_command(msg['body']):
await self.handle_command(mto, mtype, decoded)
await self.handle_command(mto, mtype, msg['body'])
elif self.debug_level == LEVELS.DEBUG:
ollama_server_response: Optional[str] = (
self.message_to_ollama_server(decoded)
self.message_to_ollama_server(msg['body'])
)
await self.plain_reply(
mto, mtype, f"{ollama_server_response or ''}"