Update src/renderer/src/aiCore/utils/__tests__/reasoning.test.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
SuYao 2025-12-18 02:40:39 +08:00 committed by GitHub
parent a25937c9cb
commit 7166762221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -728,10 +728,11 @@ describe('reasoning utils', () => {
const result = getGeminiReasoningParams(assistant, model) const result = getGeminiReasoningParams(assistant, model)
expect(result).toEqual({ expect(result).toEqual({
thinkingConfig: { thinkingConfig: {
thinkingBudget: 16896, thinkingBudget: expect.any(Number),
includeThoughts: true includeThoughts: true
} }
}) })
expect(result.thinkingConfig.thinkingBudget).toBeGreaterThan(0)
}) })
it('should enable thinking without budget for auto effort ratio > 1', async () => { it('should enable thinking without budget for auto effort ratio > 1', async () => {