Skip to content

Commit 053b4b6

Browse files
committed
fix: Skip model in agents since names need mapping
Mapping opus -> opus 4.5 may not be ideal with how requests work.
1 parent d2cbd02 commit 053b4b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/agent-translator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ export async function translateSingleAgent(
220220
frontmatter.tools = translatedTools;
221221
}
222222

223-
// Build output content with translated frontmatter
223+
// Build output content with translated frontmatter - remove model field
224224
const outputLines = ['---'];
225225

226-
// Write frontmatter fields
226+
// Write frontmatter fields, excluding model
227227
for (const [key, value] of Object.entries(frontmatter)) {
228+
if (key === 'model') continue; // Skip model field to inherit current model
229+
228230
if (key === 'tools' && Array.isArray(value)) {
229231
// Format tools as array syntax
230232
const toolsArray = value.map(t => `'${t}'`).join(', ');

0 commit comments

Comments
 (0)