This commit is contained in:
koalazf99
2025-08-01 01:53:16 +08:00
parent 9d1ffb4af6
commit 0b5fffa507
2 changed files with 4 additions and 4 deletions

View File

@@ -1173,7 +1173,7 @@ describe('useGeminiStream', () => {
mockAuthType,
undefined,
'gemini-2.5-pro',
'gemini-2.5-flash',
'qwen3-coder-flash',
);
});
});

View File

@@ -39,7 +39,7 @@ describe('parseAndFormatApiError', () => {
);
expect(result).toContain('[API Error: Rate limit exceeded');
expect(result).toContain(
'Possible quota limitations in place or slow response times detected. Switching to the gemini-2.5-flash model',
'Possible quota limitations in place or slow response times detected. Switching to the qwen3-coder-flash model',
);
});
@@ -55,7 +55,7 @@ describe('parseAndFormatApiError', () => {
);
expect(result).toContain('[API Error: Rate limit exceeded');
expect(result).toContain(
'Possible quota limitations in place or slow response times detected. Switching to the gemini-2.5-flash model',
'Possible quota limitations in place or slow response times detected. Switching to the qwen3-coder-flash model',
);
});
@@ -169,7 +169,7 @@ describe('parseAndFormatApiError', () => {
);
expect(result).toContain('[API Error: Rate limit exceeded');
expect(result).toContain(
'Possible quota limitations in place or slow response times detected. Switching to the gemini-2.5-flash model',
'Possible quota limitations in place or slow response times detected. Switching to the qwen3-coder-flash model',
);
expect(result).not.toContain(
'You have reached your daily gemini-2.5-pro quota limit',