Arguments
New: Streaming responses in Python
Learn how to build Open Interpreter into your application.
messages
This property holds a list of messages
between the user and the interpreter.
You can use it to restore a conversation:
You can use this to restore interpreter
to a previous conversation.
offline
interpreter.local
in the New Computer Update (0.2.0
).This boolean flag determines whether to enable or disable some offline features like open procedures.
Use this in conjunction with the model
parameter to set your language model.
auto_run
Setting this flag to True
allows Open Interpreter to automatically run the generated code without user confirmation.
verbose
Use this boolean flag to toggle verbose mode on or off. Verbose mode will print information at every step to help diagnose problems.
max_output
This property sets the maximum number of tokens for the output response.
conversation_history
A boolean flag to indicate if the conversation history should be stored or not.
conversation_filename
This property sets the filename where the conversation history will be stored.
conversation_history_path
You can set the path where the conversation history will be stored.
model
Specifies the language model to be used.
temperature
Sets the randomness level of the model’s output.
system_message
This stores the model’s system message as a string. Explore or modify it:
context_window
This manually sets the context window size in tokens.
We try to guess the right context window size for you model, but you can override it with this parameter.
max_tokens
Sets the maximum number of tokens the model can generate in a single response.
api_base
If you are using a custom API, you can specify its base URL here.
api_key
Set your API key for authentication.
max_budget
This property sets the maximum budget limit for the session in USD.