chat styling, 31 loop
This commit is contained in:
parent
63cf731d1f
commit
83af7f6eb9
Binary file not shown.
@ -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')
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user