2025-12-15 11:53:46 -07:00
|
|
|
# MeshAI Configuration
|
2025-12-15 13:10:02 -07:00
|
|
|
# LLM-powered Meshtastic assistant
|
|
|
|
|
#
|
|
|
|
|
# Copy this to config.yaml and customize as needed
|
|
|
|
|
# For Docker: mount as /data/config.yaml
|
2025-12-15 11:53:46 -07:00
|
|
|
|
2025-12-15 13:10:02 -07:00
|
|
|
# === BOT IDENTITY ===
|
2025-12-15 11:53:46 -07:00
|
|
|
bot:
|
2026-02-24 08:43:25 +00:00
|
|
|
name: ai # Bot's display name
|
2025-12-15 13:10:02 -07:00
|
|
|
owner: "" # Owner's callsign (optional)
|
|
|
|
|
respond_to_dms: true # Respond to direct messages
|
2026-02-23 21:28:20 +00:00
|
|
|
filter_bbs_protocols: true # Ignore advBBS sync/notification messages
|
2025-12-15 11:53:46 -07:00
|
|
|
|
2025-12-15 13:10:02 -07:00
|
|
|
# === MESHTASTIC CONNECTION ===
|
2025-12-15 11:53:46 -07:00
|
|
|
connection:
|
2025-12-15 13:10:02 -07:00
|
|
|
type: tcp # serial | tcp
|
|
|
|
|
serial_port: /dev/ttyUSB0 # For serial connection
|
|
|
|
|
tcp_host: localhost # For TCP connection (meshtasticd)
|
|
|
|
|
tcp_port: 4403
|
2025-12-15 11:53:46 -07:00
|
|
|
|
2025-12-15 13:10:02 -07:00
|
|
|
# === RESPONSE BEHAVIOR ===
|
2025-12-15 11:53:46 -07:00
|
|
|
response:
|
2025-12-15 13:10:02 -07:00
|
|
|
delay_min: 2.2 # Min delay before responding (seconds)
|
|
|
|
|
delay_max: 3.0 # Max delay before responding
|
|
|
|
|
max_length: 150 # Max chars per message chunk
|
|
|
|
|
max_messages: 2 # Max message chunks per response
|
2025-12-15 11:53:46 -07:00
|
|
|
|
2025-12-15 13:10:02 -07:00
|
|
|
# === CONVERSATION HISTORY ===
|
|
|
|
|
history:
|
|
|
|
|
database: /data/conversations.db
|
|
|
|
|
max_messages_per_user: 50 # Messages to keep per user
|
|
|
|
|
conversation_timeout: 86400 # Conversation expiry (seconds, 86400=24h)
|
|
|
|
|
auto_cleanup: true # Auto-delete old conversations
|
|
|
|
|
cleanup_interval_hours: 24 # How often to run cleanup
|
|
|
|
|
max_age_days: 30 # Delete conversations older than this
|
|
|
|
|
|
|
|
|
|
# === MEMORY OPTIMIZATION ===
|
|
|
|
|
memory:
|
|
|
|
|
enabled: true # Enable rolling summary memory
|
|
|
|
|
window_size: 4 # Recent message pairs to keep in full
|
|
|
|
|
summarize_threshold: 8 # Messages before re-summarizing
|
|
|
|
|
|
2025-12-15 13:38:33 -07:00
|
|
|
# === LLM BACKEND ===
|
|
|
|
|
llm:
|
|
|
|
|
backend: openai # openai | anthropic | google
|
|
|
|
|
api_key: "" # API key (or use LLM_API_KEY env var)
|
|
|
|
|
base_url: https://api.openai.com/v1 # API base URL
|
|
|
|
|
model: gpt-4o-mini # Model name
|
|
|
|
|
timeout: 30 # Request timeout (seconds)
|
|
|
|
|
system_prompt: >-
|
|
|
|
|
You are a helpful assistant on a Meshtastic mesh network.
|
|
|
|
|
Keep responses VERY brief - under 250 characters total.
|
|
|
|
|
Be concise but friendly. No markdown formatting.
|
2026-02-24 04:44:44 +00:00
|
|
|
google_grounding: false # Enable Google Search grounding (Gemini only, $35/1k queries)
|
2025-12-15 13:38:33 -07:00
|
|
|
|
Strip config to working features only
Remove ~15 unused dataclasses (RateLimitsConfig, LoggingConfig,
SafetyConfig, UsersConfig, CommandsConfig, PersonalityConfig,
WebStatusConfig, AnnouncementsConfig, WebhookConfig, IntegrationsConfig,
etc). Strip config.example.yaml and docker-entrypoint.sh defaults.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 00:25:34 +00:00
|
|
|
# === WEATHER ===
|
|
|
|
|
weather:
|
|
|
|
|
primary: openmeteo # openmeteo | wttr | llm
|
|
|
|
|
fallback: llm # openmeteo | wttr | llm | none
|
|
|
|
|
default_location: "" # Default location for !weather (optional)
|