Skip to content

Commit 61bebc7

Browse files
authored
Update index.html
1 parent 1967615 commit 61bebc7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -993,10 +993,15 @@ <h6>
993993

994994
<!------------- java script ---------------->
995995
<script>
996-
// Configuration
997-
const API_KEY = "AIzaSyD_9fPQ50G7yjIqeKUrWnVdH_Yk9m9m6SI";
998-
const AI_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models/gemma-3-27b-it:generateContent";
999-
996+
// Configuration
997+
const API_KEY = import.meta.env.VITE_API_KEY || '';
998+
const AI_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models/gemma-3-27b-it:generateContent";
999+
1000+
// Optional: Check kalau API key takde
1001+
if (!API_KEY) {
1002+
console.error('❌ API KEY TAK JUMPA! Check Vercel environment variables');
1003+
}
1004+
10001005
// DUCKDUCKGO + WIKIPEDIA YANG WORKING
10011006
const SEARCH_ENGINES = [
10021007
{

0 commit comments

Comments
 (0)