-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.env.example
63 lines (48 loc) · 1.99 KB
/
.env.example
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
# .env.example
# Default model to use for commit message generation
# Options:
# - Outlines compatible models, e.g., "mistralai/Mistral-7B-Instruct-v0.2"
# - OpenAI models, prefix with "openai/", e.g., "openai/gpt-3.5-turbo"
# - Gemini models, prefix with "gemini/", e.g., "gemini/gemini-pro"
# - Claude models, prefix with "claude/", e.g., "claude/claude-2.1"
DEFAULT_MODEL=gemini/gemini-1.5-flash
# Whether to use emojis in commit messages by default
# Options: true, false
USE_EMOJI=false
# Whether to include description in commit messages by default
# Options: true, false
INCLUDE_DESCRIPTION=true
# Default maximum length for commit descriptions
DESCRIPTION_LENGTH=100
# API Keys for different services
OPENAI_API_KEY=your_openai_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
CLAUDE_API_KEY=your_claude_api_key_here
GROQ_API_KEY=your_groq_api_key_here
# Ollama base URL (change if running on a different port or remote server)
OLLAMA_BASE_URL=http://localhost:11434
# Maximum length for commit message description
# This is used in the ConventionalCommit Pydantic model
MAX_DESCRIPTION_LENGTH=100
# Maximum length for commit message scope
# This is used in the ConventionalCommit Pydantic model
MAX_SCOPE_LENGTH=50
# Optional: Custom model API endpoint
# Use this if you're using a custom hosted model
# CUSTOM_MODEL_URL=http://your-custom-model-api-endpoint.com
# Optional: API key for the model service (if required)
# MODEL_API_KEY=your_api_key_here
# Optional: Caching option for similar diffs
# Set to true to enable caching of model outputs for similar diffs
# ENABLE_CACHING=false
# Optional: Cache expiration time in seconds
# CACHE_EXPIRATION=3600
# Optional: Logging level
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# LOG_LEVEL=INFO
# Optional: Custom commit types
# Add your own commit types here, separated by commas
# CUSTOM_COMMIT_TYPES=db,ui,api
# Optional: Default commit format
# Options: conventional, custom (if you implement a custom format)
# COMMIT_FORMAT=conventional