Skip to content

Commit 4770dca

Browse files
committed
Switch from 4.5 Haiku to 5.6 Luna for AI chat
1 parent 70b096b commit 4770dca

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

backend/apps/cloud/src/ai/ai.service.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { PlanFeatureCode } from '../user/entities/user.entity'
2929

3030
const OPENROUTER_BASE_URL = 'https://openrouter.ai/api/v1'
3131

32-
const PRIMARY_MODEL = 'anthropic/claude-haiku-4.5'
32+
const PRIMARY_MODEL = 'openai/gpt-5.6-luna'
3333
const TITLE_MODEL = 'google/gemini-3.1-flash-lite-preview'
3434

3535
const ALLOWED_FILTER_COLUMNS = new Set([
@@ -382,6 +382,11 @@ export class AiService {
382382
messages,
383383
tools: this.buildTools(project, timezone),
384384
stopWhen: stepCountIs(15),
385+
// Kept low deliberately: reasoning tokens bill at the output rate and
386+
// delay the first streamed token, and this loop can run 15 steps.
387+
providerOptions: {
388+
openai: { reasoningEffort: 'low' },
389+
},
385390
})
386391

387392
return result

0 commit comments

Comments
 (0)