Skip to content

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 `get_ada_embedding` return type (#3263)

Robin Richtsfeldd75379358f96
diff --git a/autogpt/llm_utils.py b/autogpt/llm_utils.py
index 2ef0422fa1..212928ca08 100644
--- a/autogpt/llm_utils.py
+++ b/autogpt/llm_utils.py
@@ -209,14 +209,14 @@ def create_chat_completion(
return resp
-def get_ada_embedding(text: str) -> List[int]:
+def get_ada_embedding(text: str) -> List[float]:
"""Get an embedding from the ada model.
Args:
text (str): The text to embed.
Returns:
- List[int]: The embedding.
+ List[float]: The embedding.
"""
cfg = Config()
model = "text-embedding-ada-002"