You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("Open Interpreter will use Moondream (tiny vision model) to describe images to the language model. Set `interpreter.llm.vision_renderer = None` to disable this behavior.")
15
+
print("Alternativley, you can use a vision-supporting LLM and set `interpreter.llm.supports_vision = True`.")
Copy file name to clipboardExpand all lines: interpreter/core/core.py
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -52,10 +52,10 @@ def __init__(
52
52
force_task_completion=False,
53
53
force_task_completion_message="""Proceed. You CAN run code on my machine. If you want to run code, start your message with "```"! If the entire task I asked for is done, say exactly 'The task is done.' If you need some specific information (like username or password) say EXACTLY 'Please provide more information.' If it's impossible, say 'The task is impossible.' (If I haven't provided a task, say exactly 'Let me know what you'd like to do next.') Otherwise keep going.""",
self.supports_functions=None# Will try to auto-detect
30
+
31
+
self.supports_vision=None# Will try to auto-detect
32
+
self.vision_renderer=self.interpreter.computer.vision.query# Will only use if supports_vision is False
33
+
34
+
self.supports_functions=None# Will try to auto-detect
35
+
self.execution_instructions="To execute code on the user's machine, write a markdown code block. Specify the language after the ```. You will receive the output. Use any programming language."# If supports_functions is False, this will be added to the system message
] +="\nTo execute code on the user's machine, write a markdown code block. Specify the language after the ```. You will receive the output. Use any programming language."
0 commit comments