unit test fixes
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 38s

This commit is contained in:
2025-12-22 15:11:18 -08:00
parent 262396ddd0
commit 1a3e6a9ab5
5 changed files with 125 additions and 35 deletions

View File

@@ -128,7 +128,7 @@ export class AIService {
// This preserves the dependency injection pattern used throughout the class.
this.aiClient = genAI
? {
generateContent: (request) => {
generateContent: async (request) => {
// The model name is now injected here, into every call, as the new SDK requires.
// Architectural guard clause: All requests from this service must have content.
// This prevents sending invalid requests to the API and satisfies TypeScript's strictness.