Skip to content

Commit

Permalink
fixed add_to_vector_store_and_create_summary (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne authored Jul 20, 2023
1 parent 2476c8f commit 925fa17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superagi/resource_manager/resource_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 925fa17

Please sign in to comment.