mishig HF staff commited on
Commit
af961f3
1 Parent(s): 165b72b

Fix system prompt

Browse files
src/lib/components/InferencePlayground/InferencePlayground.svelte CHANGED
@@ -39,6 +39,11 @@
39
  let waitForNonStreaming = true;
40
 
41
  $: systemPromptSupported = isSystemPromptSupported(conversation.model);
 
 
 
 
 
42
 
43
  function addMessage() {
44
  conversation.messages = [
 
39
  let waitForNonStreaming = true;
40
 
41
  $: systemPromptSupported = isSystemPromptSupported(conversation.model);
42
+ $: {
43
+ if (!systemPromptSupported) {
44
+ systemMessage = { role: "system", content: "" };
45
+ }
46
+ }
47
 
48
  function addMessage() {
49
  conversation.messages = [