feat(routes): add system instructions
This commit is contained in:
parent
4b2a7916fd
commit
5b1055e8c9
9 changed files with 32 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue