fix: add variant to User model schema to resolve merge conflict with dev

Both authProfile and variant now exist in the User model, fixing type errors
after merging with anomalyco/dev
pull/21353/head
PabloGNU 2026-04-07 19:41:11 +02:00
parent 8fbab1c8c1
commit ee3fb4fd2d
2 changed files with 4 additions and 1 deletions

View File

@ -152,7 +152,9 @@ export namespace LLM {
}
const variant =
!input.small && runtimeModel.variants && input.user.variant ? runtimeModel.variants[input.user.variant] : {}
!input.small && runtimeModel.variants && input.user.model.variant
? runtimeModel.variants[input.user.model.variant]
: {}
const base = input.small
? ProviderTransform.smallOptions(runtimeModel)
: ProviderTransform.options({

View File

@ -372,6 +372,7 @@ export namespace MessageV2 {
providerID: ProviderID.zod,
modelID: ModelID.zod,
authProfile: z.string().optional(),
variant: z.string().optional(),
}),
system: z.string().optional(),
tools: z.record(z.string(), z.boolean()).optional(),