Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ llm:
# api_key: ... # Your API key, if the API requires it
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests
# api_version: ... # The version of the API (this is primarily for Azure)
# max_output: 2500 # The maximum characters of code output visible to the LLM

# Computer Settings
computer:
Expand All @@ -23,6 +22,7 @@ computer:
# safe_mode: "off" # The safety mode for the LLM — one of "off", "ask", "auto"
# offline: False # If True, will disable some online features like checking for updates
# verbose: False # If True, will print detailed logs
# max_output: 2500 # The maximum characters of code output visible to the LLM

# To use a separate model for the `wtf` command:
# wtf:
Expand Down
4 changes: 3 additions & 1 deletion interpreter/terminal_interface/profiles/defaults/fast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ llm:
# api_key: ... # Your API key, if the API requires it
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests
# api_version: ... # The version of the API (this is primarily for Azure)
# max_output: 2500 # The maximum characters of code output visible to the LLM

# Computer Settings
computer:
import_computer_api: True # Gives OI a helpful Computer API designed for code interpreting language models

custom_instructions: "The user has set you to FAST mode. **No talk, just code.** Be as brief as possible. No comments, no unnecessary messages. Assume as much as possible, rarely ask the user for clarification. Once the task has been completed, say 'The task is done.'" # This will be appended to the system message

# General Configuration
# auto_run: False # If True, code will run without asking for confirmation
# safe_mode: "off" # The safety mode for the LLM — one of "off", "ask", "auto"
# offline: False # If True, will disable some online features like checking for updates
# verbose: False # If True, will print detailed logs
# multi_line: False # If True, you can input multiple lines starting and ending with ```
# max_output: 2500 # The maximum characters of code output visible to the LLM

# All options: https://docs.openinterpreter.com/settings

Expand Down
12 changes: 6 additions & 6 deletions interpreter/terminal_interface/profiles/defaults/snowpark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ llm:
# api_key: ... # Your API key, if the API requires it
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests
# api_version: ... # The version of the API (this is primarily for Azure)
# max_output: 2500 # The maximum characters of code output visible to the LLM

# Computer Settings
computer:
Expand All @@ -34,7 +33,7 @@ If this doesnt work, you may need to run the following commands to install snowp
!pip install "snowflake-connector-python[pandas]"
```

Then, you can create a dictionary with the necessary connection parameters and create a session. You will access these values from the
Then, you can create a dictionary with the necessary connection parameters and create a session. You will access these values from the
environment variables:
```python
# Retrieve environment variables
Expand All @@ -43,7 +42,7 @@ snowflake_user = os.getenv("SNOWFLAKE_USER")
snowflake_password = os.getenv("SNOWFLAKE_PASSWORD")
snowflake_role = os.getenv("SNOWFLAKE_ROLE")
snowflake_warehouse = os.getenv("SNOWFLAKE_WAREHOUSE")
snowflake_database = os.getenv("SNOWFLAKE_DATABASE")
snowflake_database = os.getenv("SNOWFLAKE_DATABASE")
snowflake_schema = os.getenv("SNOWFLAKE_SCHEMA")

# Create connection parameters dictionary
Expand All @@ -52,15 +51,15 @@ connection_parameters = {
"user": snowflake_user,
"password": snowflake_password,
"role": snowflake_role,
"warehouse": snowflake_warehouse,
"database": snowflake_database,
"warehouse": snowflake_warehouse,
"database": snowflake_database,
"schema": snowflake_schema,
}

# Create a session
session = Session.builder.configs(connection_parameters).create()
```
You should assume that the environment variables have already been set.
You should assume that the environment variables have already been set.
You can run a query against the snowflake data by using the session.sql() method. Then, you can turn the snowpark dataframe
that is created into a pandas dataframe for use in other processes. Here is an example of how you can run a query:
```python
Expand All @@ -82,6 +81,7 @@ You can now use this dataframe to do whatever you need to do with the data.
# offline: False # If True, will disable some online features like checking for updates
# verbose: False # If True, will print detailed logs
# multi_line: False # If True, you can input multiple lines starting and ending with ```
# max_output: 2500 # The maximum characters of code output visible to the LLM

# Documentation
# All options: https://docs.openinterpreter.com/settings
4 changes: 3 additions & 1 deletion interpreter/terminal_interface/profiles/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,13 @@ def normalize_text(message):
# Be sure to remove the "#" before the following settings to use them.

# custom_instructions: "" # This will be appended to the system message

# General Configuration
# auto_run: False # If True, code will run without asking for confirmation
# safe_mode: "off" # The safety mode (see https://docs.openinterpreter.com/usage/safe-mode)
# offline: False # If True, will disable some online features like checking for updates
# verbose: False # If True, will print detailed logs
# max_output: 2800 # The maximum characters of code output visible to the LLM

# computer
# languages: ["javascript", "shell"] # Restrict to certain languages
Expand All @@ -523,7 +526,6 @@ def normalize_text(message):
# api_key: ... # Your API key, if the API requires it
# api_base: ... # The URL where an OpenAI-compatible server is running
# api_version: ... # The version of the API (this is primarily for Azure)
# max_output: 2800 # The maximum characters of code output visible to the LLM

# All options: https://docs.openinterpreter.com/settings

Expand Down
Loading