Skip to content

Commit

Permalink
exclude task request info from the webhook request payload (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Apr 15, 2024
1 parent 836f9d0 commit 0ac6e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ async def execute_task_webhook(self, task: Task, last_step: Step, api_key: str |
# send task_response to the webhook callback url
# TODO: use async requests (httpx)
timestamp = str(int(datetime.utcnow().timestamp()))
payload = task_response.model_dump_json(exclude={"request": {"navigation_payload"}})
payload = task_response.model_dump_json(exclude={"request"})
signature = generate_skyvern_signature(
payload=payload,
api_key=api_key,
Expand Down

0 comments on commit 0ac6e1a

Please sign in to comment.