fix(core): resolve 500 errors with gemini-3-flash-preview model

- Refactor default model configs to prevent Flash models from inheriting thinkingConfig
- Add synthetic model turn to initial chat history to enforce alternating user/model roles required by gemini-3-flash-preview
- Fix trailing newline assertion error in file-system integration test
This commit is contained in:
Sehoon Shon
2026-03-30 17:03:00 -04:00
parent 9cf410478c
commit 404eb72d4b
4 changed files with 24 additions and 10 deletions
@@ -96,6 +96,10 @@ export async function getInitialChatHistory(
role: 'user',
parts: [{ text: envContextString }],
},
{
role: 'model',
parts: [{ text: 'Understood. I am ready.' }],
},
...(extraHistory ?? []),
];
}