feat(search): add optional systemInstructions to API request body
This commit is contained in:
parent
09661ae11d
commit
64e2d457cc
2 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue