AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix dict type annotation
youkaichaoa51b37f01c68
diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.pyindex f2418b658f..260403e243 100644--- a/autogpt/llm_utils.py+++ b/autogpt/llm_utils.py@@ -59,7 +59,7 @@ def create_chat_completion("""Create a chat completion using the OpenAI APIArgs:- messages (list[dict[str, str]]): The messages to send to the chat completion+ messages (List[Dict[str, str]]): The messages to send to the chat completionmodel (str, optional): The model to use. Defaults to None.temperature (float, optional): The temperature to use. Defaults to 0.9.max_tokens (int, optional): The max tokens to use. Defaults to None.diff --git a/autogpt/processing/text.py b/autogpt/processing/text.pyindex 24e3bb8581..d9e335f821 100644--- a/autogpt/processing/text.py+++ b/autogpt/processing/text.py@@ -1,5 +1,5 @@"""Text processing functions"""-from typing import Generator, Optional+from typing import Generator, Optional, Dictfrom selenium.webdriver.remote.webdriver import WebDriverfrom autogpt.memory import get_memoryfrom autogpt.config import Config@@ -114,7 +114,7 @@ def scroll_to_percentage(driver: WebDriver, ratio: float) -> None:driver.execute_script(f"window.scrollTo(0, document.body.scrollHeight * {ratio});")-def create_message(chunk: str, question: str) -> dict[str, str]:+def create_message(chunk: str, question: str) -> Dict[str, str]:"""Create a message for the chat completionArgs:@@ -122,7 +122,7 @@ def create_message(chunk: str, question: str) -> dict[str, str]:question (str): The question to answerReturns:- dict[str, str]: The message to send to the chat completion+ Dict[str, str]: The message to send to the chat completion"""return {"role": "user",