Skip to content

Environment variables#

You can configure Lens Prism preferences through the environment variables, which can allow you to automate and standardize AI assistant setup across the client environments without manual UI inputs.

Variable Comments and possible values
LENS_PRISM_MODE open-ai, open-ai-compatible, azure
OpenAI configuration
LENS_PRISM_OPENAI_API_KEY Obtain an API key from the AI provider
Azure configuration
LENS_PRISM_AZURE_API_KEY Find Azure AI Foundry > Home
LENS_PRISM_AZURE_API_VERSION Find in the model menu
LENS_PRISM_AZURE_RESOURCE_NAME Find in Azure AI Foundry > Home
LENS_PRISM_AZURE_MODEL_IDS To find, navigate to Azure AI Foundry > Deployments and click the model you need
LENS_PRISM_AZURE_CONTEXT_WINDOW Accordingly to the Azure model settings
LENS_PRISM_AZURE_MAX_OUTPUT_TOKENS Accordingly to the Azure model settings
OpenAI compatible configuration
LENS_PRISM_OPENAI_COMPATIBLE_API_KEY Find in the AI provider profile, or contact organization profile administrator
LENS_PRISM_OPENAI_COMPATIBLE_BASE_URL Find in the AI provider profile, or contact organization profile administrator
LENS_PRISM_OPENAI_COMPATIBLE_MODEL_IDS Find in the AI provider profile, or contact organization profile administrator
LENS_PRISM_OPENAI_COMPATIBLE_CONTEXT_WINDOW Accordingly to the LLM settings
LENS_PRISM_OPENAI_COMPATIBLE_MAX_OUTPUT_TOKENS Accordingly to the LLM settings
LENS_PRISM_OPENAI_COMPATIBLE_TEMPERATURE Accordingly to the LLM settings