daniel commited on
Commit
83bbf54
·
1 Parent(s): 22c06a2

Increase chunking threshold to preserve context

Browse files
Files changed (1) hide show
  1. api/services/model_service.py +1 -1
api/services/model_service.py CHANGED
@@ -127,7 +127,7 @@ class ModelService:
127
  vulnerabilities = []
128
  max_vuln_prob = 0.0
129
  threshold = 0.5
130
- use_chunking = len(code) > 2500
131
 
132
  if use_chunking:
133
  chunks = self.chunk_code(code)
 
127
  vulnerabilities = []
128
  max_vuln_prob = 0.0
129
  threshold = 0.5
130
+ use_chunking = len(code) > 10000
131
 
132
  if use_chunking:
133
  chunks = self.chunk_code(code)