From 8fc8667a0db24b504757fe5fe369011f24c3cc8b Mon Sep 17 00:00:00 2001 From: Cole Medin <47287758+coleam00@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:06:22 -0500 Subject: [PATCH] Fixing small typo in n8n_pipe.py --- local-ai-packaged/n8n_pipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-ai-packaged/n8n_pipe.py b/local-ai-packaged/n8n_pipe.py index 29fc3df..3705051 100644 --- a/local-ai-packaged/n8n_pipe.py +++ b/local-ai-packaged/n8n_pipe.py @@ -87,7 +87,7 @@ class Pipe: "Authorization": f"Bearer {self.valves.n8n_bearer_token}", "Content-Type": "application/json", } - payload = {"sessionId": f"{__user__['id']} - {messages[0]['content'].split("Prompt: ")[-1][:100]}"} + payload = {"sessionId": f"{__user__['id']} - {messages[0]['content'].split('Prompt: ')[-1][:100]}"} payload[self.valves.input_field] = question response = requests.post( self.valves.n8n_url, json=payload, headers=headers