From a88d233c6ba5f30198ed844f3f5b1180f4c42ca0 Mon Sep 17 00:00:00 2001 From: armistace Date: Thu, 5 Jun 2025 09:22:19 +1000 Subject: [PATCH] remove tail and improve notification prompt --- .gitea/workflows/deploy.yml | 1 - src/main.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5215bd8..acf82d2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -48,7 +48,6 @@ jobs: echo "N8N_WEBHOOK_URL='${{ vars.N8N_WEBHOOK_URL }}'" >> .env echo "CHROMA_HOST='${{ vars.CHROMA_HOST }}'" >> .env echo "CHROMA_PORT='${{ vars.CHROMA_PORT }}'" >> .env - tail .env -n 100 - name: Create Blogs shell: bash diff --git a/src/main.py b/src/main.py index 0540418..5a157e0 100644 --- a/src/main.py +++ b/src/main.py @@ -52,7 +52,8 @@ for note in tril_notes: n8n_prompt_human = f""" Generate an informal 150 word summary describing {ai_gen.response}. - Don't address it or use names. ONLY OUTPUT THE RESPONSE + Don't address it or use names. ONLY OUTPUT THE RESPONSE. + ONLY OUTPUT IN PLAINTEXT STRIP ALL MARKDOWN """ notification_message = ai_gen.generate_system_message(n8n_system_prompt, n8n_prompt_human) secret_key = os.environ['N8N_SECRET']