Skip to content

Commit 261d51e

Browse files
committed
feat: Update AI model selection with detailed descriptions and closing tags for Claude format
1 parent 14e5ddf commit 261d51e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ <h3>EXPLORER</h3>
138138
<span class="separator"></span>
139139
<span class="info-item">
140140
<span class="material-symbols-outlined">smart_toy</span>
141-
<select id="modelSelector" title="AI Model Template">
142-
<option value="gpt">GPT-4</option>
143-
<option value="claude">Claude</option>
144-
<option value="gemini">Gemini</option>
141+
<select id="modelSelector" title="Choose AI model format - optimizes output structure for each AI">
142+
<option value="gpt" title="Markdown format with clear code blocks">GPT-4 (Markdown)</option>
143+
<option value="claude" title="XML format with structured context">Claude (XML)</option>
144+
<option value="gemini" title="Hybrid format with metadata">Gemini (Hybrid)</option>
145145
</select>
146146
</span>
147147
</div>

index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,11 @@
13981398
}
13991399
}
14001400

1401+
// Add closing tags for Claude format
1402+
if (S.model === 'claude') {
1403+
parts.push('</source_files>\n</context>\n');
1404+
}
1405+
14011406
await new Promise(r => setTimeout(r, 0));
14021407

14031408
const blob = new Blob(parts, { type: 'text/plain' });
@@ -1494,6 +1499,13 @@
14941499
if (D.model) {
14951500
D.model.addEventListener('change', () => {
14961501
S.model = D.model.value;
1502+
const templates = {
1503+
gpt: '📝 GPT-4: Markdown format with clear code blocks and instructions',
1504+
claude: '🤖 Claude: XML-structured context with semantic tags for better understanding',
1505+
gemini: '✨ Gemini: Hybrid format with metadata and organized sections'
1506+
};
1507+
console.log(`%c${templates[S.model]}`, 'color:#10b981;font-weight:bold');
1508+
toast(`Template: ${S.model.toUpperCase()}`, 'info');
14971509
});
14981510
}
14991511
// Optimize file input change handler

0 commit comments

Comments
 (0)