← back to Designer Wallcoverings
Fix room-setting-app pre-existing build errors (unblock deploy)
5ad05ef7ff740ff6885284bbbcc754fd63c13064 · 2026-09-22 13:48:50 -0700 · Steve Abrams
Two committed type errors blocked `next build` (app ran an old build on prod):
- ModelProvider union missing 'gemini-2.5-flash' (used by ModelComparison testModels) — added it.
- thinkingConfig not in the installed @google/generative-ai GenerationConfig type — cast the
generationConfig (valid Gemini API field, kept at runtime).
Neither changes runtime behavior; both are compiler-only. Verified next build passes.
Unrelated to TK-11786 but required to deploy the (dormant) SSO hardening on this app.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwQJGSbGmK5rDzRsCqvVEc
Files touched
M DW-Programming/room-setting-app/lib/multi-model-generator.ts
Diff
commit 5ad05ef7ff740ff6885284bbbcc754fd63c13064
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Sep 22 13:48:50 2026 -0700
Fix room-setting-app pre-existing build errors (unblock deploy)
Two committed type errors blocked `next build` (app ran an old build on prod):
- ModelProvider union missing 'gemini-2.5-flash' (used by ModelComparison testModels) — added it.
- thinkingConfig not in the installed @google/generative-ai GenerationConfig type — cast the
generationConfig (valid Gemini API field, kept at runtime).
Neither changes runtime behavior; both are compiler-only. Verified next build passes.
Unrelated to TK-11786 but required to deploy the (dormant) SSO hardening on this app.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwQJGSbGmK5rDzRsCqvVEc
---
DW-Programming/room-setting-app/lib/multi-model-generator.ts | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/DW-Programming/room-setting-app/lib/multi-model-generator.ts b/DW-Programming/room-setting-app/lib/multi-model-generator.ts
index 95ea68e5..87435604 100644
--- a/DW-Programming/room-setting-app/lib/multi-model-generator.ts
+++ b/DW-Programming/room-setting-app/lib/multi-model-generator.ts
@@ -5,6 +5,7 @@ import { preTilePattern, WALL_SURFACE_DIRECTIVE } from './gemini-room-generator'
export type ModelProvider =
| 'gemini-2.5-flash-image'
| 'gemini-3.5-flash'
+ | 'gemini-2.5-flash'
| 'openai-dall-e-3'
| 'openai-dall-e-2'
| 'anthropic-claude-3.5-sonnet'
@@ -910,12 +911,14 @@ Generate the photorealistic room with correctly scaled wallpaper now.`;
const model = gemini.getGenerativeModel({
model: modelName,
+ // thinkingConfig is a valid Gemini API field not yet in the installed @google/generative-ai
+ // SDK's GenerationConfig type; cast keeps it at runtime while satisfying the compiler.
generationConfig: {
temperature: 0.4,
topK: 32,
topP: 1,
maxOutputTokens: 4096, thinkingConfig: { thinkingBudget: 0 },
- },
+ } as any,
});
// For non-mural patterns, pre-tile the pattern to show correct number of repeats
← 733bbfd2 TK-11786 #4: HMAC-sign DW Central SSO session (close base64
·
back to Designer Wallcoverings
·
auto-data-snapshot: 2026-09-22T13:54:25 (1 data files) — sho 5e7257bd →