feat(routes): add system instructions

This commit is contained in:
ItzCrazyKns
2025-04-01 15:49:36 +05:30
parent 4b2a7916fd
commit 5b1055e8c9
9 changed files with 32 additions and 0 deletions

View File

@ -49,6 +49,7 @@ type Body = {
files: Array<string>;
chatModel: ChatModel;
embeddingModel: EmbeddingModel;
systemInstructions: string;
};
const handleEmitterEvents = async (
@ -278,6 +279,7 @@ export const POST = async (req: Request) => {
embedding,
body.optimizationMode,
body.files,
body.systemInstructions,
);
const responseStream = new TransformStream();

View File

@ -125,6 +125,7 @@ export const POST = async (req: Request) => {
embeddings,
body.optimizationMode,
[],
"",
);
if (!body.stream) {