Skip to content

Commit c466e15

Browse files
committed
Fixed get_script/get_commnand and refactor
1 parent 8005312 commit c466e15

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libs/interpreter_lib.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,15 @@ def get_prompt(self,message: str, chat_history: List[dict]) -> str:
197197
]
198198
}
199199
]
200-
200+
201201
# Use the Assistants API.
202202
else:
203203
messages = [
204-
{"role": "system", "content":system_message},
204+
{"role": "system", "content": system_message},
205205
{"role": "assistant", "content": "Please generate code wrapped inside triple backticks known as codeblock."},
206206
{"role": "user", "content": message}
207207
]
208208

209-
210209
return messages
211210

212211
def execute_last_code(self,os_name):
@@ -424,7 +423,7 @@ def get_command_prompt(self, task, os_name):
424423
def handle_vision_mode(self, task):
425424
prompt = f"Give accurate and detailed information about the image provided and be very detailed about the image '{task}'."
426425
return prompt
427-
426+
428427
def handle_chat_mode(self, task):
429428
prompt = f"Give accurate and detailed response to the question provided and be very detailed about the question '{task}'."
430429
return prompt

0 commit comments

Comments
 (0)