0a054606fe
Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
521 B
TypeScript
13 lines
521 B
TypeScript
import { describe, it, expect } from 'vitest'
|
|
import { AiClientService } from '../../src/main/services/ai-client.service'
|
|
import { DEFAULT_AI_CONFIG } from '../../src/shared/types'
|
|
|
|
describe('AiClientService', () => {
|
|
const client = new AiClientService(() => DEFAULT_AI_CONFIG)
|
|
|
|
it('IT-AI-01: chat returns non-empty content from LM Studio', async () => {
|
|
const content = await client.chat([{ role: 'user', content: '回复一个字:好' }])
|
|
expect(content.trim().length).toBeGreaterThan(0)
|
|
}, 180_000)
|
|
})
|