diff --git a/src/modules/llms/server/anthropic/anthropic.router.ts b/src/modules/llms/server/anthropic/anthropic.router.ts index bcfa3e7d5..b02cf0ecd 100644 --- a/src/modules/llms/server/anthropic/anthropic.router.ts +++ b/src/modules/llms/server/anthropic/anthropic.router.ts @@ -180,16 +180,16 @@ export const llmAnthropicRouter = createTRPCRouter({ if (!hardcodedModel.created && model.created_at) hardcodedModel.created = roundTime(model.created_at); - // add the base model - acc.push(hardcodedModel); - - // add a thinking variant, if defined + // add FIRST a thinking variant, if defined if (hardcodedAnthropicVariants[model.id]) acc.push({ ...hardcodedModel, ...hardcodedAnthropicVariants[model.id], }); + // add the base model + acc.push(hardcodedModel); + } else { // for day-0 support of new models, create a placeholder model using sensible defaults