mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-01 18:35:00 -05:00
add the url variable in the get_text_summary function to pass it to the memory
By sending the url along when calling browse.summarize_text, we can then add it along the chunk in memory.
This commit is contained in:
@@ -183,7 +183,7 @@ def browse_website(url, question):
|
||||
def get_text_summary(url, question):
|
||||
"""Return the results of a google search"""
|
||||
text = browse.scrape_text(url)
|
||||
summary = browse.summarize_text(text, question)
|
||||
summary = browse.summarize_text(url, text, question)
|
||||
return """ "Result" : """ + summary
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user