Skip to content

Commit f13d2da

Browse files
authored
Update audit.rs
1 parent 47c59ab commit f13d2da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utils/audit.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl OpenAIClient {
7373
);
7474

7575
let request_body = serde_json::json!({
76-
"model": "gpt-4",
76+
"model": "gpt-4.1",
7777
"messages": [
7878
{
7979
"role": "system",
@@ -139,7 +139,7 @@ impl OpenAIClient {
139139
);
140140

141141
let request_body = serde_json::json!({
142-
"model": "gpt-4",
142+
"model": "gpt-4.1",
143143
"messages": [
144144
{
145145
"role": "system",
@@ -542,17 +542,17 @@ impl AuditCoordinator {
542542
if let Ok(entries) = std::fs::read_dir("src") {
543543
for entry in entries.flatten() {
544544
if let Some(ext) = entry.path().extension() {
545-
if ext == "rs" {
545+
// if ext == "rs" {
546546
if let Ok(content) = std::fs::read_to_string(&entry.path()) {
547547
// Limit content size to avoid API limits
548-
if content.len() < 8000 {
548+
if content.len() < 80000 {
549549
match ai_client.analyze_code(&content, &entry.path().display().to_string()).await {
550550
Ok(findings) => ai_findings.extend(findings),
551551
Err(e) => println!("⚠️ AI analysis failed for {}: {}", entry.path().display(), e),
552552
}
553553
}
554554
}
555-
}
555+
// }
556556
}
557557
}
558558
}
@@ -1045,4 +1045,4 @@ This security audit provides a comprehensive assessment of the OSVM CLI applicat
10451045
println!("✅ PDF generated successfully: {}", output_path.display());
10461046
Ok(())
10471047
}
1048-
}
1048+
}

0 commit comments

Comments
 (0)