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,17 +1224,15 @@ function modal_open(url)
|
|||
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
keytextres = data;
|
||||
keytextres = unique(data);
|
||||
console.log(keytextres)
|
||||
})
|
||||
promptWeb = '网页标题:'+ article.title +'\n'
|
||||
|
||||
promptWeb = '网页标题:'+ article.title +'\n'+'网页布局:\n'
|
||||
for (el in modalele)
|
||||
{
|
||||
if((promptWeb + modalele[el] + '\n').length <400)
|
||||
promptWeb = promptWeb + modalele[el] + '\n';
|
||||
}
|
||||
'网页布局:\n'+ modalele.slice(400) +'\n' +'网页内容:\n'
|
||||
promptWeb = promptWeb +'网页内容:\n'
|
||||
keySentencesCount = 0;
|
||||
for (st in keytextres)
|
||||
{
|
||||
|
@ -1243,6 +1241,8 @@ function modal_open(url)
|
|||
keySentencesCount = keySentencesCount+1;
|
||||
}
|
||||
console.log(promptWeb)
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
error => {
|
||||
|
|
|
@ -1224,17 +1224,15 @@ function modal_open(url)
|
|||
fetchRetry('https://search.kg/keytext',3,optkeytext)
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
keytextres = data;
|
||||
keytextres = unique(data);
|
||||
console.log(keytextres)
|
||||
})
|
||||
promptWeb = '网页标题:'+ article.title +'\n'
|
||||
|
||||
promptWeb = '网页标题:'+ article.title +'\n'+'网页布局:\n'
|
||||
for (el in modalele)
|
||||
{
|
||||
if((promptWeb + modalele[el] + '\n').length <400)
|
||||
promptWeb = promptWeb + modalele[el] + '\n';
|
||||
}
|
||||
'网页布局:\n'+ modalele.slice(400) +'\n' +'网页内容:\n'
|
||||
promptWeb = promptWeb +'网页内容:\n'
|
||||
keySentencesCount = 0;
|
||||
for (st in keytextres)
|
||||
{
|
||||
|
@ -1243,6 +1241,8 @@ function modal_open(url)
|
|||
keySentencesCount = keySentencesCount+1;
|
||||
}
|
||||
console.log(promptWeb)
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
error => {
|
||||
|
|
Loading…
Add table
Reference in a new issue