-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
31 lines (22 loc) · 1.44 KB
/
Copy path.env.example
File metadata and controls
31 lines (22 loc) · 1.44 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
# Browser + server (required)
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
# Server-only: OpenAI-compatible API base (when ai_provider is openai)
MODEL_API_BASE=https://your-provider-endpoint/v1
OPENAI_API_KEY=
# Server-only: Gemini (used when ai_provider is gemini or as fallback for keys)
GEMINI_API_KEY=
# Optional: Gemini model id for chat/JSON (default gemini-2.5-flash). Use another id if the free daily quota for one model is exhausted.
# GEMINI_CHAT_MODEL=gemini-2.0-flash
# Optional: lighter model for parallel side-panel extractions (gaps / BOQ / WBS). Default gemini-2.0-flash — faster and less likely to 502 vs the main chat model.
# GEMINI_METADATA_MODEL=gemini-2.5-flash
# Optional: max retries for transient Gemini 429 (per-minute), not for daily quota. Default 5.
# GEMINI_429_MAX_RETRIES=5
# Optional: per-request timeout for OpenAI-compatible HTTP calls from Next.js (ms). Default 540000 (9 min).
# MUDRIK_CLOUD_FETCH_TIMEOUT_MS=540000
# Optional: Python api_manager.py / test_mudrik_api.py HTTP timeout in seconds (60–600). Default 120.
# MUDRIK_API_TIMEOUT_SEC=120
# Must match vector(N) in document_chunks.embedding (default 3072; run migration 003 after changing)
EMBEDDING_VECTOR_DIMENSIONS=3072
# POST /api/engine/generate: في الإنتاج يُشترط تسجيل الدخول دائماً. في التطوير يمكن فرض ذلك بـ:
# ENGINE_GENERATE_REQUIRE_AUTH=true