This commit is contained in:
Saifeddine ALOUI 2024-11-02 12:29:09 +01:00
parent 1c03d31717
commit 7ad456806e
2 changed files with 4 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ class LollmsApplication(LoLLMsCom):
"is_continue":is_continue, "is_continue":is_continue,
"previous_chunk":previous_chunk "previous_chunk":previous_chunk
} }
if self.config.debug: if self.config.debug and not self.personality.processor:
ASCIIColors.highlight(documentation,"source_document_title", ASCIIColors.color_yellow, ASCIIColors.color_red, False) ASCIIColors.highlight(documentation,"source_document_title", ASCIIColors.color_yellow, ASCIIColors.color_red, False)
# Return the prepared query, original message content, and tokenized query # Return the prepared query, original message content, and tokenized query
return prompt_data, current_message.content, tokens, context_details, internet_search_infos return prompt_data, current_message.content, tokens, context_details, internet_search_infos

View File

@ -2624,6 +2624,9 @@ class APScript(StateMachine):
Use this structure: Use this structure:
{output_data} {output_data}
""" """
if self.config.debug and not self.personality.processor:
ASCIIColors.highlight(full_prompt,"source_document_title", ASCIIColors.color_yellow, ASCIIColors.color_red, False)
response = self.generate_code(full_prompt, callback=self.sink, accept_all_if_no_code_tags_is_present=True) response = self.generate_code(full_prompt, callback=self.sink, accept_all_if_no_code_tags_is_present=True)
# Parse the response based on format # Parse the response based on format
if output_format == "yaml": if output_format == "yaml":