From 5c9c78d75527d6102138e97d2b0f984fbcc0a720 Mon Sep 17 00:00:00 2001 From: thecaptain789 Date: Sat, 7 Feb 2026 16:27:21 +0000 Subject: [PATCH] fix: correct typo 'occured' to 'occurred' Fixed 5 occurrences of the typo 'occured' in vector_db.py and main.py. --- ToolServer/ToolServerManager/main.py | 2 +- XAgent/vector_db.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ToolServer/ToolServerManager/main.py b/ToolServer/ToolServerManager/main.py index 15264bd..581959d 100644 --- a/ToolServer/ToolServerManager/main.py +++ b/ToolServer/ToolServerManager/main.py @@ -81,7 +81,7 @@ async def wait_for_node_startup(node_id:str): node_id (str): The unique identifier of the node whose startup is to be waited for. Returns: - bool: True if node has started successfully, False if time out occured before node startup. + bool: True if node has started successfully, False if time out occurred before node startup. Raises: HTTPException: If node is not found in the databse. diff --git a/XAgent/vector_db.py b/XAgent/vector_db.py index 6a4bfaa..635e961 100644 --- a/XAgent/vector_db.py +++ b/XAgent/vector_db.py @@ -57,7 +57,7 @@ def get_info(self): and store the total vector count in the vector_count attribute. Raises: - Exception: An error occured accessing the database. + Exception: An error occurred accessing the database. """ @@ -110,7 +110,7 @@ def delete_sentence(self, sentence:str): sentence (str): The sentence to be deleted. Raises: - Exception: An error occured deleting the sentence. + Exception: An error occurred deleting the sentence. """ @@ -130,7 +130,7 @@ def insert_sentence(self, vec_sentence:str, sentence:str, namespace=""): namespace (str, optional): The namespace of the vector. Defaults to "". Raises: - Exception: An error occured inserting the sentence. + Exception: An error occurred inserting the sentence. """ @@ -163,7 +163,7 @@ def search_similar_sentences(self, query_sentence:str, namespace="", top_k=1): object: The most similar sentences. Raises: - Exception: An error occured searching the database. + Exception: An error occurred searching the database. """