unit test fixes
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 38s
Some checks failed
Deploy to Test Environment / deploy-to-test (push) Failing after 38s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user