diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 0c8979a..39d7686 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/views.py b/core/views.py index 032e2ef..677f84e 100644 --- a/core/views.py +++ b/core/views.py @@ -218,7 +218,7 @@ def run_ai_process_in_background(conversation_id): 1. You can issue a series of commands to be executed sequentially. 2. The system executes each command and provides a result. -3. The loop will stop if you call `send_message` or after a maximum of 7 iterations. +3. The loop will stop if you call `send_message` or after a maximum of 31 iterations. **VERY IMPORTANT:** - To talk to the user, you MUST use the `send_message` command. This command will STOP the execution loop. @@ -267,7 +267,7 @@ def run_ai_process_in_background(conversation_id): logger.info("Starting AI processing loop...") - for i in range(7): # Loop up to 7 times + for i in range(31): # Loop up to 31 times logger.info(f"AI loop iteration {i+1}") response = LocalAIApi.create_response({ @@ -311,7 +311,7 @@ def run_ai_process_in_background(conversation_id): Message.objects.create(conversation=conversation, content=ai_text, sender='ai') break else: - logger.warning("AI loop finished after 7 iterations without sending a message.") + logger.warning("AI loop finished after 31 iterations without sending a message.") final_message = "I seem to be stuck in a loop. Could you clarify what you'd like me to do?" Message.objects.create(conversation=conversation, content=final_message, sender='ai') diff --git a/static/css/custom.css b/static/css/custom.css index 293163a..e6030e3 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -202,9 +202,11 @@ body { /* System and AI Command Messages */ .message.system .message-content { - background-color: #f8d7da; - color: #721c24; - border: 1px solid #f5c6cb; + background-color: #f1f3f5; + color: #495057; + border: 1px solid #dee2e6; + font-size: 0.8rem; + padding: 0.5rem 0.75rem; } .message.ai_command .message-content { diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index 293163a..e6030e3 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -202,9 +202,11 @@ body { /* System and AI Command Messages */ .message.system .message-content { - background-color: #f8d7da; - color: #721c24; - border: 1px solid #f5c6cb; + background-color: #f1f3f5; + color: #495057; + border: 1px solid #dee2e6; + font-size: 0.8rem; + padding: 0.5rem 0.75rem; } .message.ai_command .message-content {