-
Notifications
You must be signed in to change notification settings - Fork 132
Expand file tree
/
Copy path.env.sample
More file actions
55 lines (42 loc) · 2.03 KB
/
.env.sample
File metadata and controls
55 lines (42 loc) · 2.03 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
# MarkPDFDown Configuration Template
# Copy this file to .env and configure your settings
# =============================================================================
# Model Configuration
# =============================================================================
# Model name - LiteLLM will automatically route to the correct provider
# Examples:
# OpenAI models: gpt-4o, gpt-4o-mini, gpt-4-vision-preview
# OpenRouter models: openrouter/anthropic/claude-3.5-sonnet, openrouter/google/gemini-pro-vision
# OpenAI-Compatible models: openai/hunyuan-turbo-vision, openai/doubao-1-5-vision-pro-32k-250115
MODEL_NAME=gpt-4o
# =============================================================================
# API Keys (LiteLLM automatically detects these environment variables)
# =============================================================================
# OpenAI API Key (for OpenAI models)
# OPENAI_API_KEY=your-openai-api-key-here
# OPENAI_API_BASE=https://api.openai.com/v1 # [OPTIONAL]
# OpenRouter API Key (for OpenRouter models)
# OPENROUTER_API_KEY=your-openrouter-api-key-here
# OPENROUTER_API_BASE=https://openrouter.ai/api/v1/ # [OPTIONAL]
# =============================================================================
# Generation Parameters (Optional)
# =============================================================================
# Temperature for text generation (0.0 to 2.0)
TEMPERATURE=0.3
# Maximum number of tokens for generated text
MAX_TOKENS=8192
# Number of retries for failed API calls
RETRY_TIMES=3
# =============================================================================
# Usage Examples
# =============================================================================
# For OpenAI GPT-4o:
# MODEL_NAME=gpt-4o
# OPENAI_API_KEY=sk-...
# For OpenRouter Claude 4 Sonnet:
# MODEL_NAME=openrouter/anthropic/claude-sonnet-4
# OPENROUTER_API_KEY=sk-or-v1-...
# For Doubao 1.5 Vision Pro:
# MODEL_NAME=openai/doubao-1-5-vision-pro-32k-250115
# OPENAI_API_KEY=sk-...
# OPENAI_API_BASE=https://ark.cn-beijing.volces.com/api/v3/