Skip to content

Commit f7fed9f

Browse files
authored
Update
1 parent b176c0a commit f7fed9f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ <h2 style="margin-top:0; color:var(--accent)">About KrizVibe</h2>
797797
aiInput.value = '';
798798
aiInput.disabled = true;
799799

800-
addChatMsg('ai', '<i class="fa-solid fa-spinner fa-spin"></i> Generating code with Kimi K2...');
800+
addChatMsg('ai', '<i class="fa-solid fa-spinner fa-spin"></i> Generating code...');
801801

802802
const systemPrompt = `You are KrizVibe AI, an expert web developer specialized in creating stunning, modern web interfaces.
803803
Current Code Context:
@@ -811,8 +811,7 @@ <h2 style="margin-top:0; color:var(--accent)">About KrizVibe</h2>
811811
1. Return ONLY the updated code.
812812
2. Format response strictly as:
813813
[HTML]
814-
...code...
815-
[CSS]
814+
...code...[CSS]
816815
...code...
817816
[JS]
818817
...code...
@@ -828,8 +827,8 @@ <h2 style="margin-top:0; color:var(--accent)">About KrizVibe</h2>
828827
'X-KrizVibe-Token': AI_SECRET_TOKEN
829828
},
830829
body: JSON.stringify({
831-
messages: [
832-
{ role: 'system', content: 'You are KrizVibe AI, an expert web developer. Always return code in the exact format: [HTML]...code...[CSS]...code...[JS]...code... with no explanations.' },
830+
messages:[
831+
{ role: 'system', content: 'You are KrizVibe AI, an expert web developer. Always return code in the exact format:[HTML]...code...[CSS]...code...[JS]...code... with no explanations.' },
833832
{ role: 'user', content: systemPrompt }
834833
]
835834
})

0 commit comments

Comments
 (0)