mirror of
https://github.com/coleam00/ai-agents-masterclass.git
synced 2026-01-19 21:40:32 +00:00
Fixing small typo in n8n_pipe.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user