-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
45 lines (40 loc) · 1.95 KB
/
Copy path.env.example
File metadata and controls
45 lines (40 loc) · 1.95 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
### Node-RED Semantic Flow Language ###
# AI Connector to use: azure-openai, openai, anthropic, google
AI_CONNECTOR="azure-openai"
# Generic AI settings (used by all connectors)
AI_API_KEY=""
AI_MODEL=""
AI_MAX_COMPLETION_TOKENS=""
AI_MAX_TOKENS=""
AI_MAX_FLOW_CONTEXT_CHARS="18000"
# OpenAI-specific fields (used when AI_CONNECTOR=openai)
AI_ORGANIZATION=""
# Azure-specific fields (used when AI_CONNECTOR=azure-openai)
AI_ENDPOINT="https://your-endpoint.openai.azure.com/"
AI_API_VERSION="2024-12-01-preview"
AI_DEPLOYMENT_NAME="your-deployment-name"
AI_SEARCH_ENDPOINT=""
AI_SEARCH_API_KEY=""
AI_SEARCH_INDEX=""
AI_EMBEDDING_DEPLOYMENT=""
# Auto-Verify settings (also configurable in Node-RED settings.js under the plugin block)
# SFL_AUTO_VERIFY_DEFAULT — default state of the AI tab auto-verify switch
SFL_AUTO_VERIFY_DEFAULT="true"
# SFL_AUTO_VERIFY_MAX_ATTEMPTS — correction attempts before stopping (server clamps to max 10)
SFL_AUTO_VERIFY_MAX_ATTEMPTS="3"
# SFL_AUTO_VERIFY_MAX_RESTARTS — after exhausting attempts, regenerate the flow from scratch
# (sends the original prompt to the AI with no context) and run auto-verify again.
# Total worst-case AI calls = MAX_ATTEMPTS * MAX_RESTARTS.
SFL_AUTO_VERIFY_MAX_RESTARTS="3"
# SFL_AUTO_VERIFY_TIMEOUT_MS — per-attempt timeout in ms (deploy/observe window + loop upper bound)
SFL_AUTO_VERIFY_TIMEOUT_MS="30000"
# Auto-deploy is gated by NODE_ENV alone: must be set AND not "production".
# Audit trail emission. Default empty = silent (no audit emission).
# Accepted values:
# "" → no audit emission (silent default)
# "red.log" → emit via RED.log.info() with JSON-serialised event
# "http(s)://..." → POST JSON payload to that URL
# anything else → file path, append as JSONL (relative paths resolve to .node-red)
SFL_AUDIT_DESTINATION=""
# URL-mode auth: object of key/value HTTP headers added to every POST.
# Configurable only in settings.js (env can't carry object values cleanly).