OverviewFilesCommitsIssuesDocsReleasesPeers

ollama_semantic_function_calling commits / 9c45955

Update main.py to work with ollamatools Matrix integration
9c45955a91b32f21a5daf0797607570ce97b0083
by fleeky.ashatron <fleeky@7rnx.net> · 2025-04-19T23:37:53.000Z

Changed files (1) +3 -3

ollamatools-new/matrix_cmd/main.py +3 -3
……@@ -438,11 +438,11 @@ async def run_interactive_command(args: argparse.Namespace) -> None:
438438 logger.info(f"Starting interactive session in room {args.room}")
439439 logger.info("Type your messages and press Enter to send. Type /quit to exit.")
440440
441 # Set up the message callback
442 client.client.add_event_callback(client._message_callback, RoomMessageText)
441 # Start listening for messages
442 logger.info("Starting to listen for messages...")
443443
444444 # Create a task for syncing with the server
445 sync_task = asyncio.create_task(client.client.sync_forever(timeout=30000, full_state=True))
445 sync_task = asyncio.create_task(client.listen())
446446
447447 try:
448448 # Input loop