Skip to content

Commit

Permalink
Fixing small typo in n8n_pipe.py
Browse files Browse the repository at this point in the history
  • Loading branch information
coleam00 committed Oct 24, 2024
1 parent 90dad49 commit 8fc8667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-ai-packaged/n8n_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ async def 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
Expand Down

0 comments on commit 8fc8667

Please sign in to comment.