feat: initial release v0.3.0
This commit is contained in:
22
tests/unit/llm/ark-llm-thinking.test.ts
Normal file
22
tests/unit/llm/ark-llm-thinking.test.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
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',
|
||||
},
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user