From 8dadf79614969a58a29b44cd9af4127795a153d6 Mon Sep 17 00:00:00 2001 From: H-jj-R Date: Mon, 17 Apr 2023 13:25:49 +0100 Subject: [PATCH] Spelling fixes --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- autogpt/app.py | 4 ++-- autogpt/commands/git_operations.py | 2 +- autogpt/commands/google_search.py | 4 ++-- autogpt/llm_utils.py | 2 +- autogpt/memory/milvus.py | 2 +- autogpt/setup.py | 2 +- autogpt/speech/eleven_labs.py | 2 +- outputs/logs/message-log-1.txt | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c355965a..cf7ffbf3 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -30,4 +30,4 @@ By following these guidelines, your PRs are more likely to be merged quickly aft - + diff --git a/autogpt/app.py b/autogpt/app.py index 19c075f0..ad9f18d1 100644 --- a/autogpt/app.py +++ b/autogpt/app.py @@ -212,7 +212,7 @@ def execute_command(command_name: str, arguments): def get_text_summary(url: str, question: str) -> str: - """Return the results of a google search + """Return the results of a Google search Args: url (str): The url to scrape @@ -227,7 +227,7 @@ def get_text_summary(url: str, question: str) -> str: def get_hyperlinks(url: str) -> Union[str, List[str]]: - """Return the results of a google search + """Return the results of a Google search Args: url (str): The url to scrape diff --git a/autogpt/commands/git_operations.py b/autogpt/commands/git_operations.py index 675eb228..05ce2a21 100644 --- a/autogpt/commands/git_operations.py +++ b/autogpt/commands/git_operations.py @@ -7,7 +7,7 @@ CFG = Config() def clone_repository(repo_url: str, clone_path: str) -> str: - """Clone a github repository locally + """Clone a GitHub repository locally Args: repo_url (str): The URL of the repository to clone diff --git a/autogpt/commands/google_search.py b/autogpt/commands/google_search.py index 148ba1d0..7d38ce75 100644 --- a/autogpt/commands/google_search.py +++ b/autogpt/commands/google_search.py @@ -11,7 +11,7 @@ CFG = Config() def google_search(query: str, num_results: int = 8) -> str: - """Return the results of a google search + """Return the results of a Google search Args: query (str): The search query. @@ -35,7 +35,7 @@ def google_search(query: str, num_results: int = 8) -> str: def google_official_search(query: str, num_results: int = 8) -> str | list[str]: - """Return the results of a google search using the official Google API + """Return the results of a Google search using the official Google API Args: query (str): The search query. diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py index 2075f934..1d739e4a 100644 --- a/autogpt/llm_utils.py +++ b/autogpt/llm_utils.py @@ -121,7 +121,7 @@ def create_chat_completion( def create_embedding_with_ada(text) -> list: - """Create a embedding with text-ada-002 using the OpenAI SDK""" + """Create an embedding with text-ada-002 using the OpenAI SDK""" num_retries = 10 for attempt in range(num_retries): backoff = 2 ** (attempt + 2) diff --git a/autogpt/memory/milvus.py b/autogpt/memory/milvus.py index c6e7d5a3..7a2571d0 100644 --- a/autogpt/memory/milvus.py +++ b/autogpt/memory/milvus.py @@ -46,7 +46,7 @@ class MilvusMemory(MemoryProviderSingleton): self.collection.load() def add(self, data) -> str: - """Add a embedding of data into memory. + """Add an embedding of data into memory. Args: data (str): The raw text to construct embedding index. diff --git a/autogpt/setup.py b/autogpt/setup.py index 5315c01d..79661905 100644 --- a/autogpt/setup.py +++ b/autogpt/setup.py @@ -1,4 +1,4 @@ -"""Setup the AI and its goals""" +"""Set up the AI and its goals""" from colorama import Fore, Style from autogpt import utils from autogpt.config.ai_config import AIConfig diff --git a/autogpt/speech/eleven_labs.py b/autogpt/speech/eleven_labs.py index 0af48cae..186ec6fc 100644 --- a/autogpt/speech/eleven_labs.py +++ b/autogpt/speech/eleven_labs.py @@ -14,7 +14,7 @@ class ElevenLabsSpeech(VoiceBase): """ElevenLabs speech class""" def _setup(self) -> None: - """Setup the voices, API key, etc. + """Set up the voices, API key, etc. Returns: None: None diff --git a/outputs/logs/message-log-1.txt b/outputs/logs/message-log-1.txt index 8a719016..6b146b98 100644 --- a/outputs/logs/message-log-1.txt +++ b/outputs/logs/message-log-1.txt @@ -483,7 +483,7 @@ How to Become a Freelance Artificial Intelligence Engineer Springboard https://www.springboard.com › Blog › Data Science -29/10/2021 — There are numerous freelancing platforms where you can kick start your career as a freelance artificial intelligence engineer. +29/10/2021 — There are numerous freelancing platforms where you can kick-start your career as a freelance artificial intelligence engineer. More to ask Is AI good for freelancing? What business can I start with AI?