fix: tei reranker (#7606)

fix(tei)
This commit is contained in:
Chen Tao 2025-06-27 18:07:17 +08:00 committed by GitHub
parent d463d6ea2e
commit 98b12fb800
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ export default abstract class BaseReranker {
return data.output.results
} else if (provider === 'voyageai') {
return data.data
} else if (provider === 'mis-tei') {
} else if (provider?.includes('tei')) {
return data.map((item: any) => {
return {
index: item.index,