Skip to content

Commit

Permalink
cleanup unused ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jul 6, 2024
1 parent 85ffe8f commit 5f57576
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions agixt/Interactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ async def run(
task = asyncio.create_task(
self.websearch.scrape_websites(
user_input=user_input,
search_depth=websearch_depth,
summarize_content=False,
conversation_name=conversation_name,
)
Expand All @@ -576,7 +575,6 @@ async def run(
task = asyncio.create_task(
self.websearch.scrape_websites(
user_input=user_input,
search_depth=websearch_depth,
summarize_content=False,
conversation_name=conversation_name,
)
Expand Down
1 change: 0 additions & 1 deletion agixt/Websearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ async def recursive_browsing(
async def scrape_websites(
self,
user_input: str = "",
search_depth: int = 0,
summarize_content: bool = False,
conversation_name: str = "",
):
Expand Down
1 change: 0 additions & 1 deletion agixt/XT.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@ async def learn_from_websites(
user_input = f"Learn from the information from these websites:\n {url_str} "
response = await self.agent_interactions.websearch.scrape_websites(
user_input=user_input,
search_depth=scrape_depth,
summarize_content=summarize_content,
conversation_name=conversation_name,
)
Expand Down
3 changes: 1 addition & 2 deletions agixt/endpoints/Memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ async def learn_url(
user=user,
ApiClient=ApiClient,
).scrape_websites(
user_input=f"I am browsing {url.url} and collecting data from it to learn more.",
search_depth=3,
user_input=f"I am browsing {url.url} and collecting data from it to learn more."
)
return ResponseMessage(message=response)

Expand Down

0 comments on commit 5f57576

Please sign in to comment.