From a6bf217559951dceb083b9a60c456fb51e8a5e68 Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Fri, 27 Jun 2025 21:26:21 -0400 Subject: [PATCH] Fix typos (#2807) --- docker-compose.yml | 2 +- .../prompts/skyvern/check-evaluation-goal.j2 | 2 +- .../skyvern/confirm-multi-selection-finish.j2 | 2 +- .../prompts/skyvern/extract-information.j2 | 2 +- skyvern/forge/sdk/api/llm/config_registry.py | 2 +- skyvern/webeye/actions/handler.py | 34 +++++++++---------- skyvern/webeye/scraper/domUtils.js | 10 +++--- skyvern/webeye/utils/dom.py | 4 +-- 8 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 39a6462a..b4dfc93c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -108,7 +108,7 @@ services: # - GROQ_API_KEY= # - GROQ_MODEL=llama-3.1-8b-instant - # Maximum tokens to use: (only set for OpenRouter aand Ollama) + # Maximum tokens to use: (only set for OpenRouter and Ollama) # - LLM_CONFIG_MAX_TOKENS=128000 # Bitwarden Settings diff --git a/skyvern/forge/prompts/skyvern/check-evaluation-goal.j2 b/skyvern/forge/prompts/skyvern/check-evaluation-goal.j2 index e81421e8..ba8a9473 100644 --- a/skyvern/forge/prompts/skyvern/check-evaluation-goal.j2 +++ b/skyvern/forge/prompts/skyvern/check-evaluation-goal.j2 @@ -7,7 +7,7 @@ Reply in JSON format with the following keys: "thought": str, // Think step by step. Describe your thought in thi field. "is_booking": bool, // True if the goal is to book something, including room, flight and so on. "is_including_date": bool, // True if the goal includes date information. -"tweaked_user_goal": str, // If is_booking is True and is_including_date is True, repick a date within the next two months to replace the orignal date in the goal. Otherwise, return the orignal user goal. +"tweaked_user_goal": str, // If is_booking is True and is_including_date is True, repick a date within the next two months to replace the original date in the goal. Otherwise, return the original user goal. } User goal diff --git a/skyvern/forge/prompts/skyvern/confirm-multi-selection-finish.j2 b/skyvern/forge/prompts/skyvern/confirm-multi-selection-finish.j2 index db2c8f0d..b2cbecb7 100644 --- a/skyvern/forge/prompts/skyvern/confirm-multi-selection-finish.j2 +++ b/skyvern/forge/prompts/skyvern/confirm-multi-selection-finish.j2 @@ -8,7 +8,7 @@ Reply in JSON format with the following keys: { "page_info": str, // Think step by step. Describe the page information you parsed from the HTML elements and the screenshot. Your decision should be based on the current page information. "think": str, // Think step by step. Describe how you think the user has finished the mini goal in the current opened dropdown selection. - "is_multiple_selection": bool, // True if it's a multi-level selection, otheriwse False. + "is_multiple_selection": bool, // True if it's a multi-level selection, otherwise False. "is_mini_goal_finished": bool, // True if the user has finished the mini goal in the current opened dropdown selection, False otherwise. } diff --git a/skyvern/forge/prompts/skyvern/extract-information.j2 b/skyvern/forge/prompts/skyvern/extract-information.j2 index 7e40f61d..b1170bc8 100644 --- a/skyvern/forge/prompts/skyvern/extract-information.j2 +++ b/skyvern/forge/prompts/skyvern/extract-information.j2 @@ -9,7 +9,7 @@ Do not ever include anything other than the JSON object in your output, and do n If you are unable to extract the requested information for a specific field in the json schema, please output a null value for that field. -If you are trying to extract the href links which are using the jinja style like "{% raw %}{{}}{% endraw %}", please keep the orignal string. +If you are trying to extract the href links which are using the jinja style like "{% raw %}{{}}{% endraw %}", please keep the original string. User Data Extraction Goal: {{ data_extraction_goal }} diff --git a/skyvern/forge/sdk/api/llm/config_registry.py b/skyvern/forge/sdk/api/llm/config_registry.py index 46ac9483..06939638 100644 --- a/skyvern/forge/sdk/api/llm/config_registry.py +++ b/skyvern/forge/sdk/api/llm/config_registry.py @@ -855,7 +855,7 @@ if settings.ENABLE_NOVITA: # Get the credentials json file. See documentation: https://support.google.com/a/answer/7378726?hl=en # my_vertex_credentials = json.dumps(json.load(open("my_credentials_file.json"))) # Set the value of my_vertex_credentials as the environment variable VERTEX_CREDENTIALS -# NOTE: If you want to specify a location, make sure the model is availale in the target location. +# NOTE: If you want to specify a location, make sure the model is available in the target location. # See documentation: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations#united-states if settings.ENABLE_VERTEX_AI and settings.VERTEX_CREDENTIALS: if not settings.VERTEX_PROJECT_ID: diff --git a/skyvern/webeye/actions/handler.py b/skyvern/webeye/actions/handler.py index f1383a2a..9a29b7a2 100644 --- a/skyvern/webeye/actions/handler.py +++ b/skyvern/webeye/actions/handler.py @@ -1058,7 +1058,7 @@ async def handle_input_text_action( skyvern_element = blocking_element except Exception: LOG.info( - "Failed to find the blocking element, continue with the orignal element", + "Failed to find the blocking element, continue with the original element", exc_info=True, task_id=task.task_id, step_id=step.step_id, @@ -1290,9 +1290,9 @@ async def handle_select_option_action( if not await skyvern_element.is_selectable(): # 1. find from children - # TODO: 2. find from siblings and their chidren + # TODO: 2. find from siblings and their children LOG.info( - "Element is not selectable, try to find the selectable element in the chidren", + "Element is not selectable, try to find the selectable element in the children", tag_name=tag_name, action=action, ) @@ -1302,7 +1302,7 @@ async def handle_select_option_action( selectable_child = await skyvern_element.find_selectable_child(dom=dom) except Exception as e: LOG.error( - "Failed to find selectable element in chidren", + "Failed to find selectable element in children", exc_info=True, tag_name=tag_name, action=action, @@ -1347,7 +1347,7 @@ async def handle_select_option_action( blocking_element, exist = await skyvern_element.find_blocking_element(dom=dom) except Exception: LOG.warning( - "Failed to find the blocking element, continue to select on the orignal ", task_id=task.task_id, step_id=step.step_id, exc_info=True, @@ -1949,10 +1949,10 @@ async def chain_click( action_results.append(ActionFailure(FailToClick(action.element_id, anchor="for", msg=str(e)))) try: - # sometimes the element is the direct chidren of the label, instead of using for="xx" attribute + # sometimes the element is the direct children of the label, instead of using for="xx" attribute # since it's a click action, the target element we're searching should only be INPUT LOG.info( - "Chain click: it's a label element. going to check for input of the direct chidren", + "Chain click: it's a label element. going to check for input of the direct children", task_id=task.task_id, action=action, element=str(skyvern_element), @@ -1986,7 +1986,7 @@ async def chain_click( action_results.append(ActionFailure(FailToClick(action.element_id, anchor="attr_id", msg=str(e)))) try: - # sometimes the element is the direct chidren of the label, instead of using for="xx" attribute + # sometimes the element is the direct children of the label, instead of using for="xx" attribute # so we check the direct parent if it's a label element LOG.info( "Chain click: it's a non-label element. going to find the bound label element by direct parent", @@ -2257,10 +2257,10 @@ async def input_or_auto_complete_input( element_id=skyvern_element.get_id(), ) - # 1. press the orignal text to see if there's a match + # 1. press the original text to see if there's a match # 2. call LLM to find 5 potential values based on the orginal text # 3. try each potential values from #2 - # 4. call LLM to tweak the orignal text according to the information from #3, then start #1 again + # 4. call LLM to tweak the original text according to the information from #3, then start #1 again # FIXME: try the whole loop for once now, to speed up skyvern MAX_AUTO_COMPLETE_ATTEMP = 1 @@ -2439,7 +2439,7 @@ async def sequentially_select_from_dropdown( ) return None - # TODO: only suport the third-level dropdown selection now + # TODO: only support the third-level dropdown selection now MAX_SELECT_DEPTH = 3 values: list[str | None] = [] select_history: list[CustomSingleSelectResult] = [] @@ -2716,7 +2716,7 @@ async def select_from_dropdown( ) -> CustomSingleSelectResult: """ force_select: is used to choose an element to click even there's no dropdown menu; - targe_value: only valid when force_select is "False". When target_value is not empty, the matched option must be relevent to target value; + targe_value: only valid when force_select is "False". When target_value is not empty, the matched option must be relevant to target value; None will be only returned when: 1. force_select is false and no dropdown menu popped 2. force_select is false and match value is not relevant to the target value @@ -2854,7 +2854,7 @@ async def select_from_dropdown( # sometimes we have multiple elements pointed to the same value, # but only one option is clickable on the page LOG.debug( - "Searching option with the same value in incremetal elements", + "Searching option with the same value in incremental elements", value=value, elements=incremental_scraped.element_tree, ) @@ -3090,7 +3090,7 @@ async def try_to_find_potential_scrollable_element( """ check any