feat(ai): switch from DeepSeek to local Ollama (qwen3:14b)
- Point AI client to localhost:11434/v1 (Ollama) - Remove DeepSeek API key dependency - Update model name to qwen3:14b across all routes - Update test mocks to use createLocalLLMClient - Removes need for DEEPSEEK_API_KEY setting Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,7 +46,7 @@ vi.mock('@/lib/supabase/server', () => ({
|
||||
}))
|
||||
|
||||
vi.mock('@/lib/claude/client', () => ({
|
||||
createDeepSeekClient: vi.fn().mockReturnValue({
|
||||
createLocalLLMClient: vi.fn().mockReturnValue({
|
||||
chat: {
|
||||
completions: {
|
||||
create: vi.fn().mockResolvedValue({
|
||||
@@ -67,10 +67,6 @@ vi.mock('@/lib/claude/client', () => ({
|
||||
}),
|
||||
}))
|
||||
|
||||
vi.mock('@/lib/settings', () => ({
|
||||
getApiKey: vi.fn().mockResolvedValue('sk-test-key'),
|
||||
}))
|
||||
|
||||
describe('POST /api/incidents/[id]/ai/rca-draft', () => {
|
||||
it('returns five_why_steps, root_cause_summary, and capa_suggestions', async () => {
|
||||
const { POST } = await import('@/app/api/incidents/[id]/ai/rca-draft/route')
|
||||
|
||||
Reference in New Issue
Block a user