feat: initial release v0.3.0

This commit is contained in:
saturn
2026-03-08 03:15:27 +08:00
commit 881ed44996
1311 changed files with 225407 additions and 0 deletions

View 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',
},
})
})
})