Skip to content

Commit 8e25447

Browse files
committed
Add log_debug statement to show query.
Users can enable this inside of Binary Ninja's Python console.
1 parent dea7d7d commit 8e25447

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/query.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import openai
22
from typing import Callable
33
from binaryninja.plugin import BackgroundTaskThread
4-
from binaryninja.highlevelil import HighLevelILInstruction
5-
from binaryninja.log import log_info
4+
from binaryninja.log import log_debug
65

76
class Query(BackgroundTaskThread):
87

@@ -19,6 +18,8 @@ def __init__(self, query_string: str, model: str,
1918
def run(self) -> None:
2019
self.progress = "Submitting query to OpenAI."
2120

21+
log_debug(f'Sending query: {self.query_string}')
22+
2223
response: str = openai.Completion.create(
2324
model=self.model,
2425
prompt=self.query_string,

0 commit comments

Comments
 (0)