Compare commits

...

2 commits

Author SHA1 Message Date
ef8334b93c feat(frontend): add anti_aging to IngredientFunction type and form selector
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:35:39 +01:00
794650afc6 feat(models): add anti_aging to IngredientFunction enum
Model was emitting "anti_aging" as a valid ingredient function
(e.g. for retinoids, peptides). Add it to the enum and the
parse-text system prompt allowed values.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-28 22:32:57 +01:00
4 changed files with 5 additions and 3 deletions

View file

@ -271,7 +271,7 @@ actives[].functions (array, pick applicable):
"humectant" | "emollient" | "occlusive" | "exfoliant_aha" | "exfoliant_bha" | \
"exfoliant_pha" | "retinoid" | "antioxidant" | "soothing" | "barrier_support" | \
"brightening" | "anti_acne" | "ceramide" | "niacinamide" | "sunscreen" | "peptide" | \
"hair_growth_stimulant" | "prebiotic" | "vitamin_c"
"hair_growth_stimulant" | "prebiotic" | "vitamin_c" | "anti_aging"
actives[].strength_level: 1 (low) | 2 (medium) | 3 (high)
actives[].irritation_potential: 1 (low) | 2 (medium) | 3 (high)

View file

@ -93,6 +93,7 @@ class IngredientFunction(str, Enum):
HAIR_GROWTH_STIMULANT = "hair_growth_stimulant"
PREBIOTIC = "prebiotic"
VITAMIN_C = "vitamin_c"
ANTI_AGING = "anti_aging"
class TextureType(str, Enum):

View file

@ -35,7 +35,7 @@
'exfoliant_aha', 'exfoliant_bha', 'exfoliant_pha',
'retinoid', 'antioxidant', 'soothing', 'barrier_support',
'brightening', 'anti_acne', 'ceramide', 'niacinamide',
'sunscreen', 'peptide', 'hair_growth_stimulant', 'prebiotic', 'vitamin_c'
'sunscreen', 'peptide', 'hair_growth_stimulant', 'prebiotic', 'vitamin_c', 'anti_aging'
];
const interactionScopes: InteractionScope[] = ['same_step', 'same_day', 'same_period'];
const tristate = [

View file

@ -23,7 +23,8 @@ export type IngredientFunction =
| 'peptide'
| 'hair_growth_stimulant'
| 'prebiotic'
| 'vitamin_c';
| 'vitamin_c'
| 'anti_aging';
export type InteractionScope = 'same_step' | 'same_day' | 'same_period';
export type MedicationKind = 'prescription' | 'otc' | 'supplement' | 'herbal' | 'other';
export type OverallSkinState = 'excellent' | 'good' | 'fair' | 'poor';