Files
waooplus/tests/unit/llm/ark-llm-thinking.test.ts
2026-03-08 17:10:06 +08:00

23 lines
639 B
TypeScript

import { describe, expect, it } from 'vitest'
import { buildArkThinkingParam } from '@/lib/ark-llm'
describe('ark thinking param builder', () => {
it('builds enabled thinking param without reasoning_effort', () => {
const params = buildArkThinkingParam('doubao-seed-2-0-lite-260215', true)
expect(params).toEqual({
thinking: {
type: 'enabled',
},
})
})
it('builds disabled thinking param without reasoning_effort', () => {
const params = buildArkThinkingParam('doubao-seed-2-0-lite-260215', false)
expect(params).toEqual({
thinking: {
type: 'disabled',
},
})
})
})