Spaces:
Build error
Build error
🐛 Fix - preprompt not being passed correctly
Browse filesThe default case should be to use the model preprompt which wasn't being done.
Closes #414
src/routes/conversation/[id]/+server.ts
CHANGED
@@ -102,7 +102,7 @@ export async function POST({ request, fetch, locals, params }) {
|
|
102 |
messages,
|
103 |
model,
|
104 |
webSearchId: web_search_id,
|
105 |
-
preprompt: settings?.customPrompts?.[model.id],
|
106 |
locals: locals,
|
107 |
});
|
108 |
|
|
|
102 |
messages,
|
103 |
model,
|
104 |
webSearchId: web_search_id,
|
105 |
+
preprompt: settings?.customPrompts?.[model.id] ?? model.preprompt,
|
106 |
locals: locals,
|
107 |
});
|
108 |
|