c
This commit is contained in:
parent
f415f7dfdb
commit
16965f95d6
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
||||
prompt = prompt +'网页内容:\n'
|
||||
|
||||
fulltext.sort((a, b) => {
|
||||
if (a.cosineSimilarity(word,a) < b.cosineSimilarity(word,b)) {
|
||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
||||
return -1
|
||||
} else {
|
||||
return 1
|
||||
|
@ -1751,7 +1751,7 @@ function send_modalchat(elem)
|
||||
prompt = prompt +'网页内容:\n'
|
||||
|
||||
fulltext.sort((a, b) => {
|
||||
if (a.cosineSimilarity(word,a) < b.cosineSimilarity(word,b)) {
|
||||
if (cosineSimilarity(word,a) < cosineSimilarity(word,b)) {
|
||||
return -1
|
||||
} else {
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user