-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (53 loc) · 2.11 KB
/
.env.example
File metadata and controls
71 lines (53 loc) · 2.11 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
# =================================
# AI CHATBOT CONFIGURATION
# =================================
# Copy this file to .env and fill in your values
# =================================
# REQUIRED SETTINGS
# =================================
# Your Google AI Studio API Key (REQUIRED)
# Get it from: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your_api_key_here
# =================================
# OPTIONAL SERVER SETTINGS
# =================================
# Server port (default: 3000)
PORT=3000
# =================================
# OPTIONAL AI MODEL SETTINGS
# =================================
# Gemini model to use (default: gemini-1.5-flash)
# Options: gemini-1.5-flash, gemini-1.5-pro, gemini-1.0-pro
GEMINI_MODEL=gemini-1.5-flash
# System prompt - defines the AI's personality and behavior
# This will be the first instruction given to the AI
SYSTEM_PROMPT=You are a helpful AI assistant. Please provide accurate and helpful responses.
# =================================
# OPTIONAL GENERATION PARAMETERS
# =================================
# Temperature: Controls randomness (0.0 = deterministic, 2.0 = very random)
TEMPERATURE=1.0
# Top P: Nucleus sampling parameter (0.0 to 1.0)
TOP_P=0.95
# Top K: Limits token selection to top K choices
TOP_K=64
# Maximum tokens in response
MAX_OUTPUT_TOKENS=8192
# =================================
# OPTIONAL HISTORY SETTINGS
# =================================
# Maximum number of conversation pairs to keep in history
# Each pair = 1 user message + 1 AI response
MAX_HISTORY_LENGTH=10
# =================================
# EXAMPLE CONFIGURATIONS
# =================================
# For a creative writing assistant:
# SYSTEM_PROMPT=You are a creative writing assistant. Help users brainstorm ideas, improve their writing, and provide constructive feedback.
# TEMPERATURE=1.5
# For a technical support bot:
# SYSTEM_PROMPT=You are a technical support assistant. Provide clear, step-by-step solutions to technical problems.
# TEMPERATURE=0.3
# For a casual conversation bot:
# SYSTEM_PROMPT=You are a friendly conversational AI. Keep responses casual and engaging.
# TEMPERATURE=1.2