forked from SleepingBag945/notion_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.config.yaml
More file actions
83 lines (82 loc) · 3.65 KB
/
example.config.yaml
File metadata and controls
83 lines (82 loc) · 3.65 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
72
73
74
75
76
77
78
79
80
81
82
83
# notion-manager configuration
# Values here override defaults; environment variables override config.yaml.
server:
# Listen port (env: PORT)
port: "3000"
# Accounts directory path
accounts_dir: "accounts"
# Fallback token file
token_file: "token.txt"
# API key for authentication (env: API_KEY)
# If empty, a random key will be generated and written here on first startup.
# All /v1/* requests require either Authorization: Bearer <api_key>
# or x-api-key: <api_key>
api_key: ""
# Log file path (env: LOG_FILE). Empty = stderr.
# Logs are appended to this file on startup.
log_file: "server.stderr.log"
# High-volume debug/process logs.
debug_logging: true
# Log incoming /v1/messages request bodies (env: API_LOG_INPUT).
api_log_input: true
# Log responses returned to API clients (env: API_LOG_OUTPUT).
api_log_output: true
# Log runInferenceTranscript request bodies sent to Notion (env: NOTION_LOG_REQUEST).
notion_log_request: true
# Log raw runInferenceTranscript responses received from Notion (env: NOTION_LOG_RESPONSE).
notion_log_response: true
# Dump incoming API system prompts and tool schemas to files (env: DUMP_API_INPUT).
# When true, writes claude_code_system_dump.json/txt and claude_code_tools_dump.json
# to the working directory on each request. Useful for debugging Claude Code integration.
dump_api_input: false
# Dashboard admin password. Set a plaintext password here;
# on first startup it will be replaced with a SHA256+salt hash.
# If empty, a random password will be generated and printed to console.
admin_password: ""
proxy:
# Notion API base URL
notion_api_base: "https://www.notion.so/api/v3"
# Notion client version sent in headers
client_version: "23.13.20260313.1423"
# Default model when none specified in request
default_model: "opus-4.6"
# Disable Notion's built-in system prompt (~33k tokens).
# When true, removes Notion AI identity, built-in tools, and web search.
# Reduces input tokens from ~33k to ~757. Recommended for pure API proxy usage.
disable_notion_prompt: true
# Enable web search (internet search) for AI responses.
# Can be overridden per-request via X-Web-Search header.
enable_web_search: true
# Enable workspace search (Notion internal pages/databases).
# Can be overridden per-request via X-Workspace-Search header.
enable_workspace_search: false
timeouts:
# Inference (streaming) request timeout in seconds
inference_timeout: 300
# API request timeout (models/quota check) in seconds
api_timeout: 30
# TLS dial timeout in seconds
tls_dial_timeout: 30
refresh:
# Account refresh interval in minutes
interval_minutes: 30
# Quota re-check interval in minutes (minimum time between re-checks of exhausted accounts)
quota_recheck_minutes: 30
browser:
# User-Agent string
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"
# sec-ch-ua header value
sec_ch_ua: '"Chromium";v="146", "Not-A.Brand";v="24", "Google Chrome";v="146"'
# sec-ch-ua-platform header value
sec_ch_ua_platform: '"Windows"'
# Model alias mapping: friendly name → Notion internal model ID
# These are overwritten at runtime when models are fetched from Notion API.
model_map:
opus-4.6: "avocado-froyo-medium"
sonnet-4.6: "almond-croissant-low"
haiku-4.5: "anthropic-haiku-4.5"
gpt-5.2: "oatmeal-cookie"
gpt-5.4: "oval-kumquat-medium"
gemini-2.5-flash: "vertex-gemini-2.5-flash"
gemini-3-flash: "gingerbread"
minimax-m2.5: "fireworks-minimax-m2.5"