feat(search): add optional systemInstructions to API request body

This commit is contained in:
OTYAK
2025-04-05 19:06:18 +01:00
parent 09661ae11d
commit 64e2d457cc
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ interface ChatRequestBody {
query: string;
history: Array<[string, string]>;
stream?: boolean;
systemInstructions?: string;
}
export const POST = async (req: Request) => {
@ -125,7 +126,7 @@ export const POST = async (req: Request) => {
embeddings,
body.optimizationMode,
[],
'',
body.systemInstructions || '',
);
if (!body.stream) {