extraplus commited on
Commit
3c5772f
·
verified ·
1 Parent(s): 4ac5fb6

Upload .env

Browse files
Files changed (1) hide show
  1. .env +16 -13
.env CHANGED
@@ -7,7 +7,7 @@
7
  #node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
8
  # Secret key for JWT token signing (CHANGE THIS IN PRODUCTION!)
9
  # Generate a secure key with: openssl rand -hex 32
10
-
11
 
12
  # =============================================================================
13
  # SERVER SETTINGS
@@ -23,6 +23,7 @@ PORT=7860
23
  API_BASE_ENDPOINT=/api
24
 
25
  # External frontend URL (used when backend runs without bundled frontend files)
 
26
 
27
  # Serve bundled frontend files from backend (set false for HF Spaces backend-only deploy)
28
  SERVE_FRONTEND=false
@@ -31,36 +32,38 @@ SERVE_FRONTEND=false
31
  DEBUG=false
32
 
33
  # =============================================================================
34
- # MODEL SETTINGS
35
  # =============================================================================
36
 
37
- # Number of CPU threads to use for inference
38
- # Set to your CPU core count for optimal performance
39
- N_THREADS=4
 
 
 
 
 
40
 
41
- # Preload model on server startup (recommended)
42
- PRELOAD_MODEL=true
43
 
44
  # Default temperature (0.0 - 2.0)
45
  # Lower = more focused, Higher = more creative
46
- TEMPERATURE=0.7
47
 
48
  # Default maximum tokens per response
49
- MAX_TOKENS=128000
50
 
51
  # Top-p sampling (0.0 - 1.0)
52
  TOP_P=0.9
53
 
54
- # Top-k sampling (1 - 100)
55
- TOP_K=40
56
-
57
  # =============================================================================
58
  # CORS SETTINGS (for development)
59
  # =============================================================================
60
 
61
  # Allowed origins for CORS (comma-separated)
62
  # Use "*" for development, specific origins for production
63
- CORS_ORIGINS=["*"]
64
 
65
  # Allow credentials in CORS responses (set true only if using cookie auth)
66
  CORS_ALLOW_CREDENTIALS=false
 
7
  #node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
8
  # Secret key for JWT token signing (CHANGE THIS IN PRODUCTION!)
9
  # Generate a secure key with: openssl rand -hex 32
10
+ SECRET_KEY=your-secret-key-here
11
 
12
  # =============================================================================
13
  # SERVER SETTINGS
 
23
  API_BASE_ENDPOINT=/api
24
 
25
  # External frontend URL (used when backend runs without bundled frontend files)
26
+ FRONTEND_URL=https://gakrchat1.netlify.app
27
 
28
  # Serve bundled frontend files from backend (set false for HF Spaces backend-only deploy)
29
  SERVE_FRONTEND=false
 
32
  DEBUG=false
33
 
34
  # =============================================================================
35
+ # MODEL SETTINGS - NVIDIA API
36
  # =============================================================================
37
 
38
+ # NVIDIA API Key (get from https://build.nvidia.com/)
39
+ NVIDIA_API_KEY=your-nvidia-api-key-here
40
+
41
+ # NVIDIA API Base URL
42
+ NVIDIA_BASE_URL=https://integrate.api.nvidia.com/v1
43
+
44
+ # NVIDIA Model to use
45
+ NVIDIA_MODEL=moonshotai/kimi-k2-instruct
46
 
47
+ # Context window size (tokens)
48
+ N_CTX=128000
49
 
50
  # Default temperature (0.0 - 2.0)
51
  # Lower = more focused, Higher = more creative
52
+ TEMPERATURE=0.6
53
 
54
  # Default maximum tokens per response
55
+ MAX_TOKENS=4096
56
 
57
  # Top-p sampling (0.0 - 1.0)
58
  TOP_P=0.9
59
 
 
 
 
60
  # =============================================================================
61
  # CORS SETTINGS (for development)
62
  # =============================================================================
63
 
64
  # Allowed origins for CORS (comma-separated)
65
  # Use "*" for development, specific origins for production
66
+ CORS_ORIGINS=["https://gakrchat1.netlify.app"]
67
 
68
  # Allow credentials in CORS responses (set true only if using cookie auth)
69
  CORS_ALLOW_CREDENTIALS=false