Skip to main content

Options

allow_origins
List[str]
default:["*"]
Authorized origins to access the app/copilot.
transports
List[str]
Socket.io client transports option
user_env
List[str]
List of environment variables to be provided by each user to use the app. If empty, no environment variables will be asked to the user.
persist_user_env
bool
default:false
Whether to persist user environment variables (API keys) to the database. When enabled, users do not need to re-enter their keys on each session.
mask_user_env
bool
default:false
Whether to mask user environment variables in the UI using a password-type input field.
lc_cache_path
str
Path to the local langchain cache database
session_timeout
int
default:300
Duration (in seconds) during which the session is saved when the connection is lost
user_session_timeout
int
default:1296000
Duration (in seconds) of the user session expiry. 15 days by default
cache
bool
default:false
Enable third parties caching (e.g LangChain cache)

Default configuration

[project]
# List of environment variables to be provided by each user to use the app.
user_env = []

# Whether to persist user environment variables (API keys) to the database
persist_user_env = false

# Whether to mask user environment variables (API keys) in the UI with password type
mask_user_env = false

# Duration (in seconds) during which the session is saved when the connection is lost
session_timeout = 3600

# Duration (in seconds) of the user session expiry
user_session_timeout = 1296000  # 15 days

# Enable third parties caching (e.g., LangChain cache)
cache = false

# Authorized origins
allow_origins = ["*"]