mirror of
https://github.com/wahyd4/FreeAskInternet.git
synced 2026-08-08 21:00:14 +10:00
reduce context length
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
|
||||
@@ -169,7 +169,7 @@ def ask_internet(query:str, debug=False):
|
||||
content_list = search_web_ref(query,debug=debug)
|
||||
if debug:
|
||||
print(content_list)
|
||||
prompt = gen_prompt(query,content_list,context_length_limit=7000,debug=debug)
|
||||
prompt = gen_prompt(query,content_list,context_length_limit=6000,debug=debug)
|
||||
total_token = ""
|
||||
|
||||
for token in chat(prompt=prompt):
|
||||
|
||||
Reference in New Issue
Block a user