Skip to content

Commit a1df763

Browse files
authored
fix: autounstrip no start and current function matching error
1 parent 8c0e804 commit a1df763

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

reai_toolkit/features/ai_decompiler/ai_decompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def start_ai_decompiler(self, bv: BinaryView, options: Dict) -> None:
101101

102102
log_info(f"RevEng.AI | Polling AI decompilation: {poll_status}")
103103

104-
if poll_status.lower() == "uninitialised":
104+
if poll_status.lower() != "completed" and poll_status.lower() != "failed":
105105
log_info(f"RevEng.AI | Starting AI Decompilation for function at 0x{function.start:x}")
106106

107107
try:

reai_toolkit/features/match_current_function/match_current_function.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def parse_confidence(item):
9494
})
9595

9696
schema_ann_model = revengai.FunctionMatchingRequest.from_dict({
97-
"model_id": 12,
97+
"model_id": 21,
9898
"function_ids": [analyzed_function["function_id"]],
9999
"filters": filters,
100100
"result_per_function": 20,

0 commit comments

Comments
 (0)