1 parent d58c7d2 commit 03637c0Copy full SHA for 03637c0
1 file changed
index.html
@@ -1705,16 +1705,15 @@ <h4>⚠️ Input Tidak Valid</h4>
1705
};
1706
1707
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
- });
+ // ✅ GUNA API_KEY YANG DAH DI DECRYPT
+ const response = await fetch(`${IPFS_CONFIG.aiEndpoint}?key=${API_KEY}`, {
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify(payload)
+ });
+
1718
1719
if (!response.ok) {
1720
const err = await response.json();
0 commit comments