From ce46be9a655f7b8e6c2b01acb9e2b4cbb25d0ffd Mon Sep 17 00:00:00 2001 From: rakesh-krishna-a-s Date: Thu, 20 Jul 2023 13:04:08 +0530 Subject: [PATCH] fixed add_to_vector_store_and_create_summary --- superagi/resource_manager/resource_summary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superagi/resource_manager/resource_summary.py b/superagi/resource_manager/resource_summary.py index 888ae8e22..fb76d3fb0 100644 --- a/superagi/resource_manager/resource_summary.py +++ b/superagi/resource_manager/resource_summary.py @@ -28,7 +28,7 @@ def add_to_vector_store_and_create_summary(self, agent_id: int, resource_id: int agent = self.session.query(Agent).filter(Agent.id == agent_id).first() organization = agent.get_agent_organisation(self.session) model_api_key = Configuration.fetch_configuration(self.session, organization.id, "model_api_key") - model_source = Configuration.fetch_configuration(self.session, organization.id, "model_source") + model_source = Configuration.fetch_configuration(self.session, organization.id, "model_source") or "OpenAi" try: ResourceManager(str(agent_id)).save_document_to_vector_store(documents, str(resource_id), model_api_key, model_source) except Exception as e: