LLMs: Anthropic thinking models first

This commit is contained in:
Enrico Ros
2025-09-29 11:29:56 -07:00
parent 47439b9907
commit bbc736d72a
@@ -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