Skip to content

Commit a5837ee

Browse files
committed
Merge branch 'main' of https://github.com/Amazingct/open-interpreter into collage-screen
update made to support multiple monitors
2 parents 459d77d + d3119ef commit a5837ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interpreter/core/computer/terminal/terminal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(self, computer):
3131
def get_language(self, language):
3232
for lang in self.languages:
3333
if language.lower() == lang.name.lower() or (
34-
hasattr(lang, "aliases") and language in lang.aliases
34+
hasattr(lang, "aliases") and language.lower() in (alias.lower() for alias in lang.aliases)
3535
):
3636
return lang
3737
return None

interpreter/core/respond.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def respond(interpreter):
274274
and interpreter.messages
275275
and interpreter.messages[-1].get("role", "").lower() == "assistant"
276276
and not any(
277-
task_status in interpreter.messages[-1].get("content", "")
277+
task_status in interpreter.messages[-1].get("content", "").lower()
278278
for task_status in force_task_completion_breakers
279279
)
280280
):

0 commit comments

Comments
 (0)