feat(ai): switch to qwen2.5-coder-8k model

- Use larger coder model (32.8B params) for better reasoning
- Update client default model
- Update all AI routes to use qwen2.5-coder-8k:latest
- Already installed and available on server Ollama

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 13:19:41 +08:00
co-authored by Claude Haiku 4.5
parent 0ca92182ff
commit 7424fe4f9b
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ export async function POST(
let res: Awaited<ReturnType<typeof client.chat.completions.create>>
try {
res = await client.chat.completions.create({
model: 'qwen3:14b',
model: 'qwen2.5-coder-8k:latest',
max_tokens: 2048,
messages: [
{
@@ -105,7 +105,7 @@ Provide 3–5 Why steps drilling from immediate cause to root cause. Frame CAPA
await withUser(session.sub, async tx => {
await writeAuditLog(tx, 'incidents', id, 'ai_rca_draft', {
root_cause_summary: draft.root_cause_summary as string,
model: 'qwen3:14b',
model: 'qwen2.5-coder-8k:latest',
})
})
@@ -48,7 +48,7 @@ export async function POST(
let res: Awaited<ReturnType<typeof client.chat.completions.create>>
try {
res = await client.chat.completions.create({
model: 'qwen3:14b',
model: 'qwen2.5-coder-8k:latest',
max_tokens: 1024,
messages: [
{
@@ -103,7 +103,7 @@ Output exactly this JSON structure:
}
await withUser(session.sub, async tx => {
await writeAuditLog(tx, 'incidents', id, 'ai_triage_suggest', { suggestion: input, model: 'qwen3:14b' })
await writeAuditLog(tx, 'incidents', id, 'ai_triage_suggest', { suggestion: input, model: 'qwen2.5-coder-8k:latest' })
})
return NextResponse.json(input)