extonlawrence commited on
Commit
0f880bf
·
1 Parent(s): cdc2c18

Remove preprompt parameter from new conversation creation

Browse files
Files changed (1) hide show
  1. src/routes/+page.svelte +9 -10
src/routes/+page.svelte CHANGED
@@ -37,16 +37,15 @@
37
  } else {
38
  model = data.models[0].id;
39
  }
40
- const res = await fetch(`${base}/conversation`, {
41
- method: "POST",
42
- headers: {
43
- "Content-Type": "application/json",
44
- },
45
- body: JSON.stringify({
46
- model,
47
- preprompt: $settings.customPrompts[$settings.activeModel],
48
- }),
49
- });
50
 
51
  if (!res.ok) {
52
  const errorMessage = (await res.json()).message || ERROR_MESSAGES.default;
 
37
  } else {
38
  model = data.models[0].id;
39
  }
40
+ const res = await fetch(`${base}/conversation`, {
41
+ method: "POST",
42
+ headers: {
43
+ "Content-Type": "application/json",
44
+ },
45
+ body: JSON.stringify({
46
+ model,
47
+ }),
48
+ });
 
49
 
50
  if (!res.ok) {
51
  const errorMessage = (await res.json()).message || ERROR_MESSAGES.default;