Task 13: StyleAdapter with 5 cuisine templates (Italian, Latin, East Asian,
Eastern European, Mediterranean). Each template includes weighted method_bias
(sums to 1.0), element-filtered aromatics/depth/structure helpers, and
seasoning/finishing-fat vectors. StyleTemplate is a fully immutable frozen
dataclass with tuple fields.
Task 14: LLMRecipeGenerator for Levels 3 and 4. Level 3 builds a structured
element-scaffold prompt; Level 4 generates a minimal wildcard prompt (<1500
chars). Allergy hard-exclusion wired through RecipeRequest.allergies into
both prompt builders and the generate() call path. Parsed LLM response
(title, ingredients, directions, notes) fully propagated to RecipeSuggestion.
Task 15: User settings key-value store. Migration 012 adds user_settings
table. Store.get_setting / set_setting with upsert. GET/PUT /settings/{key}
endpoints with Pydantic SettingBody, key allowlist, get_session dependency.
RecipeEngine reads cooking_equipment from settings when hard_day_mode=True.
55 tests passing.
13 lines
459 B
YAML
13 lines
459 B
YAML
style_id: east_asian
|
|
name: East Asian
|
|
aromatics: [ginger, scallion, sesame, star anise, five spice, sichuan pepper, lemongrass]
|
|
depth_sources: [soy sauce, miso, oyster sauce, shiitake, fish sauce, bonito]
|
|
brightness_sources: [rice vinegar, mirin, citrus zest, ponzu]
|
|
method_bias:
|
|
stir_fry: 0.35
|
|
steam: 0.25
|
|
braise: 0.20
|
|
boil: 0.20
|
|
structure_forms: [dumpling wrapper, thin noodle, rice, bao]
|
|
seasoning_bias: soy sauce
|
|
finishing_fat: toasted sesame oil
|