From e4eb32709d39a6b4dcec2dd61c0fd6afbadab7b4 Mon Sep 17 00:00:00 2001 From: Justin Hayes Date: Wed, 6 Mar 2024 11:08:04 -0500 Subject: [PATCH 1/3] Remove extra 'S' in 'ASSISTANT' --- src/lib/components/chat/Settings/Models.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index 70bc4d2e9..84c7fefd7 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -45,7 +45,7 @@ let modelUploadMode = 'file'; let modelInputFile = ''; let modelFileUrl = ''; - let modelFileContent = `TEMPLATE """{{ .System }}\nUSER: {{ .Prompt }}\nASSSISTANT: """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER:"\nPARAMETER stop "ASSSISTANT:"`; + let modelFileContent = `TEMPLATE """{{ .System }}\nUSER: {{ .Prompt }}\nASSISTANT: """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER:"\nPARAMETER stop "ASSSISTANT:"`; let modelFileDigest = ''; let uploadProgress = null; From 7258a794f19e8e0d6ae27d095c4b2ff517567630 Mon Sep 17 00:00:00 2001 From: Justin Hayes Date: Wed, 6 Mar 2024 12:59:47 -0500 Subject: [PATCH 2/3] Remove colons and another extra 'S' --- src/lib/components/chat/Settings/Models.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index 84c7fefd7..9169a63cf 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -45,7 +45,7 @@ let modelUploadMode = 'file'; let modelInputFile = ''; let modelFileUrl = ''; - let modelFileContent = `TEMPLATE """{{ .System }}\nUSER: {{ .Prompt }}\nASSISTANT: """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER:"\nPARAMETER stop "ASSSISTANT:"`; + let modelFileContent = `TEMPLATE """{{ .System }}\nUSER {{ .Prompt }}\nASSISTANT """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER"\nPARAMETER stop "ASSISTANT"`; let modelFileDigest = ''; let uploadProgress = null; From 0aa4e3aafb6e8227e6dcf1f255f921cf9141a731 Mon Sep 17 00:00:00 2001 From: Justin Hayes Date: Wed, 6 Mar 2024 13:03:39 -0500 Subject: [PATCH 3/3] Restore colons --- src/lib/components/chat/Settings/Models.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index 9169a63cf..e540885f5 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -45,7 +45,7 @@ let modelUploadMode = 'file'; let modelInputFile = ''; let modelFileUrl = ''; - let modelFileContent = `TEMPLATE """{{ .System }}\nUSER {{ .Prompt }}\nASSISTANT """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER"\nPARAMETER stop "ASSISTANT"`; + let modelFileContent = `TEMPLATE """{{ .System }}\nUSER: {{ .Prompt }}\nASSISTANT: """\nPARAMETER num_ctx 4096\nPARAMETER stop ""\nPARAMETER stop "USER:"\nPARAMETER stop "ASSISTANT:"`; let modelFileDigest = ''; let uploadProgress = null;