File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ <h3>Output:</h3>
122122 </ div >
123123
124124 < div id ="message-box "> </ div >
125-
125+ URL='https://illustrious-dolphin-b31b9c.netlify.app/.netlify/functions/gemini-proxy';
126126 < script >
127127 async function sendPrompt ( ) {
128128 const prompt = document . getElementById ( "prompt" ) . value . trim ( ) ;
@@ -132,13 +132,13 @@ <h3>Output:</h3>
132132 output . textContent = "Generating... Please wait." ;
133133 copyButton . style . display = "none" ;
134134 downloadButton . style . display = "none" ;
135-
135+
136136 try {
137137 if ( ! prompt . trim ( ) ) {
138138 throw new Error ( "Please enter a prompt to generate code." ) ;
139139 }
140-
141- const response = await fetch ( "https://illustrious-dolphin-b31b9c.netlify.app/.netlify/functions/gemini-proxy" , {
140+
141+ const response = await fetch ( URL , {
142142 method : "POST" ,
143143 headers : {
144144 "Content-Type" : "application/json"
@@ -229,3 +229,4 @@ <h3>Output:</h3>
229229 </ script >
230230</ body >
231231</ html >
232+
You can’t perform that action at this time.
0 commit comments