diff --git a/api/app/clients/GoogleClient.js b/api/app/clients/GoogleClient.js index 15f2e6dc63..b7cc987e45 100644 --- a/api/app/clients/GoogleClient.js +++ b/api/app/clients/GoogleClient.js @@ -697,7 +697,7 @@ class GoogleClient extends BaseClient { promptPrefix = `${promptPrefix ?? ''}\n${this.options.artifactsPrompt}`.trim(); } - if (this.options?.promptPrefix?.length) { + if (promptPrefix.length) { requestOptions.systemInstruction = { parts: [ {