Skip to content

Commit 7560449

Browse files
committed
🐛 Fix - preprompt not being passed correctly
The default case should be to use the model preprompt which wasn't being done. Closes #414
1 parent 7533ab7 commit 7560449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/conversation/[id]/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export async function POST({ request, fetch, locals, params }) {
102102
messages,
103103
model,
104104
webSearchId: web_search_id,
105-
preprompt: settings?.customPrompts?.[model.id],
105+
preprompt: settings?.customPrompts?.[model.id] ?? model.preprompt,
106106
locals: locals,
107107
});
108108

0 commit comments

Comments
 (0)