Skip to content

Commit 39e52df

Browse files
committed
Simplify
1 parent f8787f7 commit 39e52df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/lib/kilo-auto-model.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,13 +223,13 @@ export async function resolveAutoModel(
223223
}
224224
const mode = modeHeader?.trim().toLowerCase() ?? '';
225225
if (mappedModel === KILO_AUTO_BALANCED_MODEL.id) {
226-
const resolved =
227-
(Object.hasOwn(BALANCED_MODE_TO_MODEL, mode) ? BALANCED_MODE_TO_MODEL[mode] : null) ??
228-
BALANCED_CODE_MODEL;
229-
if (hasImages && resolved.model === MINIMAX_CURRENT_MODEL_ID) {
226+
if (hasImages) {
230227
return BALANCED_IMAGE_MODEL;
231228
}
232-
return resolved;
229+
return (
230+
(Object.hasOwn(BALANCED_MODE_TO_MODEL, mode) ? BALANCED_MODE_TO_MODEL[mode] : null) ??
231+
BALANCED_CODE_MODEL
232+
);
233233
}
234234
return (
235235
(Object.hasOwn(FRONTIER_MODE_TO_MODEL, mode) ? FRONTIER_MODE_TO_MODEL[mode] : null) ??

0 commit comments

Comments
 (0)