nsarrazin HF staff commited on
Commit
7560449
1 Parent(s): 7533ab7

🐛 Fix - preprompt not being passed correctly

Browse files

The 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