-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
94 lines (71 loc) · 3.12 KB
/
.env.example
File metadata and controls
94 lines (71 loc) · 3.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Example environment configuration for Context Branching SDK
# Copy this file to .env and fill in your values
# Usage: cp .env.example .env
# =============================================================================
# LLM API Keys (Choose your provider)
# =============================================================================
# OpenAI Configuration
OPENAI_API_KEY=sk-your-openai-api-key-here
# Alternative name also supported:
# OPENAI_KEY=sk-your-openai-api-key-here
# Anthropic Configuration
ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here
# Alternative name also supported:
# ANTHROPIC_KEY=sk-ant-your-anthropic-api-key-here
# =============================================================================
# LLM Provider Settings
# =============================================================================
# Which provider to use (optional - auto-detects from API keys)
# Options: openai, anthropic, local
LLM_PROVIDER=openai
# Model name (optional - uses provider defaults if not set)
# OpenAI models: gpt-4, gpt-4-turbo, gpt-3.5-turbo
# Anthropic models: claude-3-5-sonnet-20241022, claude-3-opus-20240229, claude-3-haiku-20240307
# Local models: llama3, mistral, etc.
LLM_MODEL=gpt-4
# Sampling temperature (0.0 = deterministic, 1.0 = creative)
LLM_TEMPERATURE=0.7
# Maximum tokens in response
LLM_MAX_TOKENS=4096
# =============================================================================
# Local Model Configuration (for Ollama, LM Studio, etc.)
# =============================================================================
# Base URL for local model API (OpenAI-compatible)
LOCAL_MODEL_URL=http://localhost:11434/v1
# =============================================================================
# Storage Configuration
# =============================================================================
# Where to store workspace data
STORAGE_PATH=./data/workspaces
# Storage backend type
STORAGE_BACKEND=file # Options: file, memory, custom
# =============================================================================
# Application Configuration
# =============================================================================
# Web application port
APP_PORT=5000
# Enable debug mode (development only)
APP_DEBUG=false
# =============================================================================
# Publication/Research Settings
# =============================================================================
# Directory for publication outputs
PUBLICATION_DATA_PATH=./publication_data
# =============================================================================
# Quick Setup Examples
# =============================================================================
# Example 1: OpenAI GPT-4
# LLM_PROVIDER=openai
# LLM_MODEL=gpt-4
# OPENAI_API_KEY=sk-...
# Example 2: Anthropic Claude
# LLM_PROVIDER=anthropic
# LLM_MODEL=claude-3-5-sonnet-20241022
# ANTHROPIC_API_KEY=sk-ant-...
# Example 3: Local Llama3 (Free!)
# LLM_PROVIDER=local
# LLM_MODEL=llama3
# LOCAL_MODEL_URL=http://localhost:11434/v1
# Example 4: Auto-detect (just set API key)
# OPENAI_API_KEY=sk-...
# (Provider and model will be auto-detected)