mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-14 15:48:15 +00:00
feat(api): update to use fileIds
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import crypto from 'crypto';
|
||||
import { z } from 'zod';
|
||||
import ModelRegistry from '@/lib/models/registry';
|
||||
import { ModelWithProvider } from '@/lib/models/types';
|
||||
@@ -206,6 +205,7 @@ export const POST = async (req: Request) => {
|
||||
embedding: embedding,
|
||||
sources: ['web'],
|
||||
mode: body.optimizationMode,
|
||||
fileIds: body.files,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -57,6 +57,7 @@ export const POST = async (req: Request) => {
|
||||
llm: llm,
|
||||
sources: ['web', 'discussions', 'academic'],
|
||||
mode: 'balanced',
|
||||
fileIds: []
|
||||
},
|
||||
followUp: body.query,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user