We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2cbd02 commit 053b4b6Copy full SHA for 053b4b6
src/agent-translator.ts
@@ -220,11 +220,13 @@ export async function translateSingleAgent(
220
frontmatter.tools = translatedTools;
221
}
222
223
- // Build output content with translated frontmatter
+ // Build output content with translated frontmatter - remove model field
224
const outputLines = ['---'];
225
226
- // Write frontmatter fields
+ // Write frontmatter fields, excluding model
227
for (const [key, value] of Object.entries(frontmatter)) {
228
+ if (key === 'model') continue; // Skip model field to inherit current model
229
+
230
if (key === 'tools' && Array.isArray(value)) {
231
// Format tools as array syntax
232
const toolsArray = value.map(t => `'${t}'`).join(', ');
0 commit comments