Skip to content

Commit

Permalink
fix collection ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Nov 19, 2024
1 parent fec5b61 commit 3085cf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agixt/XT.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ def __init__(
self.failures = 0
self.input_tokens = 0
self.file_reader = None
if self.conversation_id:
if self.collection_id is not None:
self.file_reader = FileReader(
agent_name=self.agent_name,
agent_config=self.agent.AGENT_CONFIG,
collection_number=self.conversation_id,
collection_number=self.collection_id,
ApiClient=self.ApiClient,
user=self.user_email,
)
Expand Down Expand Up @@ -715,7 +715,7 @@ async def learn_from_file(
file_url: str = "",
file_name: str = "",
user_input: str = "",
collection_id: str = "1",
collection_id: str = "0",
):
"""
Learn from a file
Expand Down

0 comments on commit 3085cf8

Please sign in to comment.