mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
925ef46e96
commit
86687a54a2
2 changed files with 32 additions and 32 deletions
|
@ -1224,25 +1224,25 @@ function modal_open(url)
|
||||||
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
keytextres = data;
|
keytextres = unique(data);
|
||||||
console.log(keytextres)
|
console.log(keytextres)
|
||||||
|
promptWeb = '网页标题:'+ article.title +'\n'+'网页布局:\n'
|
||||||
|
for (el in modalele)
|
||||||
|
{
|
||||||
|
if((promptWeb + modalele[el] + '\n').length <400)
|
||||||
|
promptWeb = promptWeb + modalele[el] + '\n';
|
||||||
|
}
|
||||||
|
promptWeb = promptWeb +'网页内容:\n'
|
||||||
|
keySentencesCount = 0;
|
||||||
|
for (st in keytextres)
|
||||||
|
{
|
||||||
|
if((promptWeb + keytextres[st] + '\n').length <1200)
|
||||||
|
promptWeb = promptWeb + keytextres[st] + '\n';
|
||||||
|
keySentencesCount = keySentencesCount+1;
|
||||||
|
}
|
||||||
|
console.log(promptWeb)
|
||||||
})
|
})
|
||||||
promptWeb = '网页标题:'+ article.title +'\n'
|
|
||||||
|
|
||||||
for (el in modalele)
|
|
||||||
{
|
|
||||||
if((promptWeb + modalele[el] + '\n').length <400)
|
|
||||||
promptWeb = promptWeb + modalele[el] + '\n';
|
|
||||||
}
|
|
||||||
'网页布局:\n'+ modalele.slice(400) +'\n' +'网页内容:\n'
|
|
||||||
keySentencesCount = 0;
|
|
||||||
for (st in keytextres)
|
|
||||||
{
|
|
||||||
if((promptWeb + keytextres[st] + '\n').length <1200)
|
|
||||||
promptWeb = promptWeb + keytextres[st] + '\n';
|
|
||||||
keySentencesCount = keySentencesCount+1;
|
|
||||||
}
|
|
||||||
console.log(promptWeb)
|
|
||||||
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|
|
@ -1224,25 +1224,25 @@ function modal_open(url)
|
||||||
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
keytextres = data;
|
keytextres = unique(data);
|
||||||
console.log(keytextres)
|
console.log(keytextres)
|
||||||
|
promptWeb = '网页标题:'+ article.title +'\n'+'网页布局:\n'
|
||||||
|
for (el in modalele)
|
||||||
|
{
|
||||||
|
if((promptWeb + modalele[el] + '\n').length <400)
|
||||||
|
promptWeb = promptWeb + modalele[el] + '\n';
|
||||||
|
}
|
||||||
|
promptWeb = promptWeb +'网页内容:\n'
|
||||||
|
keySentencesCount = 0;
|
||||||
|
for (st in keytextres)
|
||||||
|
{
|
||||||
|
if((promptWeb + keytextres[st] + '\n').length <1200)
|
||||||
|
promptWeb = promptWeb + keytextres[st] + '\n';
|
||||||
|
keySentencesCount = keySentencesCount+1;
|
||||||
|
}
|
||||||
|
console.log(promptWeb)
|
||||||
})
|
})
|
||||||
promptWeb = '网页标题:'+ article.title +'\n'
|
|
||||||
|
|
||||||
for (el in modalele)
|
|
||||||
{
|
|
||||||
if((promptWeb + modalele[el] + '\n').length <400)
|
|
||||||
promptWeb = promptWeb + modalele[el] + '\n';
|
|
||||||
}
|
|
||||||
'网页布局:\n'+ modalele.slice(400) +'\n' +'网页内容:\n'
|
|
||||||
keySentencesCount = 0;
|
|
||||||
for (st in keytextres)
|
|
||||||
{
|
|
||||||
if((promptWeb + keytextres[st] + '\n').length <1200)
|
|
||||||
promptWeb = promptWeb + keytextres[st] + '\n';
|
|
||||||
keySentencesCount = keySentencesCount+1;
|
|
||||||
}
|
|
||||||
console.log(promptWeb)
|
|
||||||
|
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue