chore: add empty response retry test and fix flaky tests
- Add test:emptyretry script and include in test suite - Fix test-interleaved-thinking: use complex prompt to force thinking - Fix test-multiturn-thinking-tools: make Turn 2 lenient (thinking optional) - Fix test-multiturn-thinking-tools-streaming: same lenient approach - Use TEST_MODELS helper instead of hardcoded model ID Models may skip thinking on obvious next steps - this is valid behavior. Tests now only require thinking on first turn to verify signatures work. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
const { streamRequest } = require('./helpers/http-client.cjs');
|
||||
const { TEST_MODELS } = require('./helpers/test-models.cjs');
|
||||
|
||||
async function testEmptyResponseRetry() {
|
||||
console.log('\n============================================================');
|
||||
@@ -37,7 +38,7 @@ async function testEmptyResponseRetry() {
|
||||
console.log('----------------------------------------');
|
||||
|
||||
const response = await streamRequest({
|
||||
model: 'gemini-3-flash',
|
||||
model: TEST_MODELS.gemini,
|
||||
messages: [{ role: 'user', content: 'Say hi in 3 words' }],
|
||||
max_tokens: 20,
|
||||
stream: true
|
||||
|
||||
Reference in New Issue
Block a user