Spelling fixes

This commit is contained in:
H-jj-R
2023-04-17 13:25:49 +01:00
parent f41febd3ae
commit 8dadf79614
9 changed files with 11 additions and 11 deletions

View File

@@ -30,4 +30,4 @@ By following these guidelines, your PRs are more likely to be merged quickly aft
<!-- If you haven't added tests, please explain why. If you have, check the appropriate box. If you've ensured your PR is atomic and well-documented, check the corresponding boxes. -->
<!-- By submitting this, I agree that my pull request should be closed if I do not fill this out or follow the guide lines. -->
<!-- By submitting this, I agree that my pull request should be closed if I do not fill this out or follow the guidelines. -->

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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)

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

@@ -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?