ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

just the string

+18 -2
+7 -2
internal/ai/client.go
··· 33 33 Body io.Reader 34 34 } 35 35 36 + const ( 37 + defaultRecipeModel = "gpt-5.5" 38 + defaultWineModel = openai.ChatModelGPT5Mini 39 + ) 40 + 36 41 // how close should this be to Input ingredint. Should we also add aisle or just echo productid so we can look it up 37 42 type Ingredient struct { 38 43 Name string `json:"name"` ··· 118 123 apiKey: apiKey, 119 124 schema: m, 120 125 wineSchema: wine, 121 - model: openai.ChatModelGPT5_4, 122 - wineModel: openai.ChatModelGPT5Mini, 126 + model: defaultRecipeModel, 127 + wineModel: defaultWineModel, 123 128 } 124 129 } 125 130
+11
internal/ai/recipe_test.go
··· 64 64 } 65 65 } 66 66 67 + func TestNewClientUsesGPT55ForRecipeFlow(t *testing.T) { 68 + client := NewClient("test-key", "ignored") 69 + 70 + if client.model != "gpt-5.5" { 71 + t.Fatalf("expected primary recipe model to be gpt-5.5, got %q", client.model) 72 + } 73 + if client.wineModel != openai.ChatModelGPT5Mini { 74 + t.Fatalf("expected wine model to remain low-cost mini path, got %q", client.wineModel) 75 + } 76 + } 77 + 67 78 func TestNormalizeWineStyle(t *testing.T) { 68 79 tests := []struct { 69 80 name string