From da78fb2edb2f38962a108bdd828623b928390e82 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Tue, 4 Mar 2025 01:54:25 -0500 Subject: [PATCH] fix verification code hallucination (#1879) --- skyvern/forge/prompts/skyvern/extract-action.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/forge/prompts/skyvern/extract-action.j2 b/skyvern/forge/prompts/skyvern/extract-action.j2 index 0e053c6d..4fe0d8e2 100644 --- a/skyvern/forge/prompts/skyvern/extract-action.j2 +++ b/skyvern/forge/prompts/skyvern/extract-action.j2 @@ -38,7 +38,7 @@ Reply in JSON format with the following keys: {% endif %} }],{% if verification_code_check %} "verification_code_reasoning": str, // Let's think step by step. Describe what you see and think if a verification code is needed for login or any verification step. Explain why you believe a verification code is needed or not. Has the code been sent and is code available somewhere (email, phone or 2FA device)? - "need_verification_code": bool, // Whether a verification code is needed to proceed. True only if the code is available to user. If the code is not sent, return false {% endif %} + "need_verification_code": bool, // Whether a verification code must be entered on this page now. True only if the code is available to user. If the code is not sent, return false {% endif %} } {% if action_history %} Consider the action history from the last step and the screenshot together, if actions from the last step don't yield positive impact, try other actions or other action combinations.