File tree Expand file tree Collapse file tree 4 files changed +6
-19
lines changed
Expand file tree Collapse file tree 4 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
2424 type SendMessageOptions ,
2525 type WorkspaceChatMessage ,
2626} from "@/common/types/ipc" ;
27- import { getDefaultModel } from "@/common/utils/model/defaults " ;
27+ import { defaultModel } from "@/common/utils/ai/models " ;
2828import { ensureProvidersConfig } from "@/common/utils/providers/ensureProvidersConfig" ;
2929import { modeToToolPolicy , PLAN_MODE_INSTRUCTION } from "@/common/utils/ui/modeUtils" ;
3030import {
@@ -184,7 +184,7 @@ async function main(): Promise<void> {
184184 }
185185
186186 const model =
187- values . model && values . model . trim ( ) . length > 0 ? values . model . trim ( ) : getDefaultModel ( ) ;
187+ values . model && values . model . trim ( ) . length > 0 ? values . model . trim ( ) : defaultModel ;
188188 const timeoutMs = parseTimeout ( values . timeout ) ;
189189 const thinkingLevel = parseThinkingLevel ( values [ "thinking-level" ] ) ;
190190 const initialMode = parseMode ( values . mode ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as path from "path";
33import { defaultConfig } from "@/node/config" ;
44import type { MuxMessage } from "@/common/types/message" ;
55import { calculateTokenStats } from "@/common/utils/tokens/tokenStatsCalculator" ;
6- import { getDefaultModel } from "@/common/utils/model/defaults " ;
6+ import { defaultModel } from "@/common/utils/ai/models " ;
77
88/**
99 * Debug command to display cost/token statistics for a workspace
@@ -35,7 +35,7 @@ export async function costsCommand(workspaceId: string) {
3535
3636 // Detect model from first assistant message
3737 const firstAssistantMessage = messages . find ( ( msg ) => msg . role === "assistant" ) ;
38- const model = firstAssistantMessage ?. metadata ?. model ?? getDefaultModel ( ) ;
38+ const model = firstAssistantMessage ?. metadata ?. model ?? defaultModel ;
3939
4040 // Calculate stats using shared logic (now synchronous)
4141 const stats = await calculateTokenStats ( messages , model ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as path from "path";
33import { defaultConfig } from "@/node/config" ;
44import type { MuxMessage } from "@/common/types/message" ;
55import type { SendMessageOptions } from "@/common/types/ipc" ;
6- import { getDefaultModel } from "@/common/utils/model/defaults " ;
6+ import { defaultModel } from "@/common/utils/ai/models " ;
77import { getMuxSessionsDir } from "@/common/constants/paths" ;
88
99/**
@@ -104,7 +104,7 @@ export function sendMessageCommand(
104104
105105 // Prepare options
106106 const options : SendMessageOptions = {
107- model : getDefaultModel ( ) ,
107+ model : defaultModel ,
108108 } ;
109109
110110 if ( editMessageId ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments