File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) ??
You can’t perform that action at this time.
0 commit comments