From ea6aef6a18b0d8f6195d7c140284ac7833197a0e Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Wed, 14 Oct 2026 19:55:55 -0400 Subject: [PATCH] fix: replace retiring chat model with gpt-6-luna --- backend/src/services/llmService.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/services/llmService.ts b/backend/src/services/llmService.ts index 5362456..a2a01fa 100644 --- a/backend/src/services/llmService.ts +++ b/backend/src/services/llmService.ts @@ -2,7 +2,7 @@ const AI_GATEWAY_ACCOUNT_ID = '86aa227176a624680f7d34e691472576'; const AI_GATEWAY_ID = 'dalestudy'; const CHAT_COMPLETIONS_URL = `https://gateway.ai.cloudflare.com/v1/${AI_GATEWAY_ACCOUNT_ID}/${AI_GATEWAY_ID}/openai/chat/completions`; -const MODEL = 'gpt-4o-mini'; +const MODEL = 'gpt-6-luna'; export interface LLMError { message: string; @@ -45,8 +45,9 @@ export const chatCompletion = async ( body: JSON.stringify({ model: MODEL, messages, + reasoning_effort: 'none', temperature: options.temperature, - max_tokens: options.maxTokens, + max_completion_tokens: options.maxTokens, }), });