From 0c0a1c46026e250a4901b810779ae6d03caf2122 Mon Sep 17 00:00:00 2001 From: luxtiasco <79135227+luxtiasco@users.noreply.github.com> Date: Mon, 20 Feb 2023 23:32:08 +0800 Subject: [PATCH] Update webapp.py --- searx/webapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/webapp.py b/searx/webapp.py index 3d5443989..ad756ce0f 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -762,7 +762,7 @@ def search(): res['content'] = res['content'].replace("Translate Tweet.","") res['content'] = res['content'].replace("Learn more.","") tmp_prompt = res['title'] +'\n'+ res['content'] + '\n' + new_url +'\n' - if len(prompt)+len(tmp_prompt)<2800: + if len(prompt)+len(tmp_prompt)<2400: prompt += tmp_prompt +'\n' if prompt != "": gpt = ""