feat: chat responses using the citations-disabled model to exclude source citations
This commit is contained in:
1 parent
3f3a5bb0ab
commit
9d06e3b2cd
2 files changed
+17
-10
No files matched your search
@@ -120,6 +120,11 @@
|
||||
sourceIds={(sources ?? []).reduce((acc, s) => {
|
||||
let ids = [];
|
||||
s.document.forEach((document, index) => {
|
||||
if (model?.info?.meta?.capabilities?.citations == false) {
|
||||
ids.push('N/A');
|
||||
return ids;
|
||||
}
|
||||
|
||||
const metadata = s.metadata?.[index];
|
||||
const id = metadata?.source ?? 'N/A';
|
||||
|
||||
|
||||
Reference in new issue
Block a user