-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathenv.example
More file actions
22 lines (19 loc) · 985 Bytes
/
Copy pathenv.example
File metadata and controls
22 lines (19 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Ollama Configuration
OLLAMA_API_URL=http://127.0.0.1:11434
DEFAULT_OLLAMA_MODEL=
# Experiment with this until you get a balance between response quality and response time
# Be aware that increasing this value may affect the response time and you may also have to increase the Ollama timeout below.
AI_RESPONSE_MAX_TOKENS=1200
# Timeout in milliseconds for requests to the Ollama API
# Default in code is 120000 (2 minutes) if this is missing.
# If set to an invalid value (e.g., non-numeric, 0), it defaults to 180000 (3 minutes).
# Example: OLLAMA_TIMEOUT_MS=180000
OLLAMA_TIMEOUT_MS=180000
# SearXNG Configuration
SEARXNG_API_URL=http://127.0.0.1:8888
# Client-side environment variables (prefixed with NEXT_PUBLIC_)
NEXT_PUBLIC_OLLAMA_API_URL=${OLLAMA_API_URL}
NEXT_PUBLIC_SEARXNG_API_URL=${SEARXNG_API_URL}
NEXT_PUBLIC_DEFAULT_OLLAMA_MODEL=${DEFAULT_OLLAMA_MODEL}
NEXT_PUBLIC_AI_RESPONSE_MAX_TOKENS=${AI_RESPONSE_MAX_TOKENS}
NEXT_PUBLIC_OLLAMA_TIMEOUT_MS=${OLLAMA_TIMEOUT_MS}