Skip to content

Commit d3780ae

Browse files
authored
Update index.html
1 parent a08f5a9 commit d3780ae

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ <h6>
899899
<script>
900900
// Configuration
901901
const API_KEY = "AIzaSyD_9fPQ50G7yjIqeKUrWnVdH_Yk9m9m6SI";
902-
const AI_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models/gemma-3-27b-it:generateContent";
902+
const AI_ENDPOINT = "https://generativelanguage.googleapis.com/v1beta/models/gemma-3-12b-it:generateContent";
903903

904904
// DUCKDUCKGO + WIKIPEDIA YANG WORKING
905905
const SEARCH_ENGINES = [
@@ -918,8 +918,8 @@ <h6>
918918
const AzuraSecurity = {
919919
// Security Configuration - SIMPLE VERSION
920920
config: {
921-
MAX_INPUT_LENGTH: 10000, // Maximum characters sahaja
922-
MAX_LINES: 500, // Maximum lines
921+
MAX_INPUT_LENGTH: 50, // Maximum characters sahaja
922+
MAX_LINES: 10, // Maximum lines
923923
ALLOWED_CHARS_REGEX: /^[\w\s\p{P}\p{S}\n\r@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`±§·°©®§£¥]+$/u,
924924

925925
// Banned patterns untuk XSS protection
@@ -1143,14 +1143,14 @@ <h6>
11431143
if (!text) return '';
11441144

11451145
// Limit length untuk performance
1146-
if (text.length > 15000) {
1147-
text = text.substring(0, 15000) + '\n\n[Output dipotong untuk performance]';
1146+
if (text.length > 50) {
1147+
text = text.substring(0, 50) + '\n\n[Output dipotong untuk performance]';
11481148
}
11491149

11501150
// Limit lines
11511151
const lines = text.split('\n');
1152-
if (lines.length > 600) {
1153-
text = lines.slice(0, 600).join('\n') + '\n\n[Output dipotong untuk performance]';
1152+
if (lines.length > 10) {
1153+
text = lines.slice(0, 10).join('\n') + '\n\n[Output dipotong untuk performance]';
11541154
}
11551155

11561156
// Basic HTML escaping untuk safety display

0 commit comments

Comments
 (0)