aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autogpts/autogpt/autogpt/core/ability/builtins/query_language_model.py2
-rw-r--r--autogpts/autogpt/autogpt/processing/text.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/autogpts/autogpt/autogpt/core/ability/builtins/query_language_model.py b/autogpts/autogpt/autogpt/core/ability/builtins/query_language_model.py
index 63dd5cfb3..7a6ae68ee 100644
--- a/autogpts/autogpt/autogpt/core/ability/builtins/query_language_model.py
+++ b/autogpts/autogpt/autogpt/core/ability/builtins/query_language_model.py
@@ -62,5 +62,5 @@ class QueryLanguageModel(Ability):
ability_name=self.name(),
ability_args={"query": query},
success=True,
- message=model_response.response["content"],
+ message=model_response.response.content or "",
)
diff --git a/autogpts/autogpt/autogpt/processing/text.py b/autogpts/autogpt/autogpt/processing/text.py
index c0e71c988..5fed8e6b7 100644
--- a/autogpts/autogpt/autogpt/processing/text.py
+++ b/autogpts/autogpt/autogpt/processing/text.py
@@ -119,7 +119,7 @@ async def summarize_text(
temperature=0,
max_tokens=500,
)
- ).response["content"]
+ ).response.content
logger.debug(f"\n{'-'*16} SUMMARY {'-'*17}\n{summary}\n{'-'*42}\n")
return summary.strip(), None