We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449ba7a commit 17c0233Copy full SHA for 17c0233
1 file changed
apps/google-docs/src/locations/Page.tsx
@@ -30,6 +30,14 @@ const Page = () => {
30
31
const handleSubmit = async () => {
32
// Validation
33
+ const openAiApiKey = sdk.parameters.installation?.openAiApiKey as string | undefined;
34
+
35
+ if (!openAiApiKey || !openAiApiKey.trim()) {
36
+ setErrorMessage('OpenAI API key is not configured. Please configure it in the app settings.');
37
+ setSuccessMessage(null);
38
+ return;
39
+ }
40
41
if (!googleDocUrl.trim()) {
42
setErrorMessage('Please enter a Google Doc URL');
43
setSuccessMessage(null);
0 commit comments