Skip to content

Commit 03637c0

Browse files
authored
Update index.html
1 parent d58c7d2 commit 03637c0

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

index.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,16 +1705,15 @@ <h4>⚠️ Input Tidak Valid</h4>
17051705
};
17061706

17071707
try {
1708-
// ✅ GUNA PROXY (BUKAN PANGGIL GOOGLE TERUS)
1709-
const response = await fetch('/api/proxy', {
1710-
method: 'POST',
1711-
headers: {
1712-
'Content-Type': 'application/json'
1713-
},
1714-
body: JSON.stringify({
1715-
prompt: query // Hantar prompt je
1716-
})
1717-
});
1708+
// ✅ GUNA API_KEY YANG DAH DI DECRYPT
1709+
const response = await fetch(`${IPFS_CONFIG.aiEndpoint}?key=${API_KEY}`, {
1710+
method: 'POST',
1711+
headers: {
1712+
'Content-Type': 'application/json'
1713+
},
1714+
body: JSON.stringify(payload)
1715+
});
1716+
17181717

17191718
if (!response.ok) {
17201719
const err = await response.json();

0 commit comments

Comments
 (0)