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 = [
|