The model field in lettabot.yaml was redundant and misleading -- the model is configured on the Letta agent server-side, and lettabot shouldn't override it. Users were confused seeing a model in their startup log that didn't match the actual model being used. Changes: - Remove `model` from `LettaBotConfig.agent` (made optional for backward compat) - Remove `model` from `BotConfig` interface and `bot.ts` createAgent() calls - Remove `model` from `main.ts` config construction and startup log - Stop saving `model` to lettabot.yaml during onboarding - Stop mapping `agent.model` to `MODEL` env var in config/io.ts - Add `getAgentModel()` and `updateAgentModel()` to letta-api.ts - Add new `src/commands/model.ts` with three subcommands: - `lettabot model` - interactive model selector - `lettabot model show` - show current agent model - `lettabot model set <handle>` - set model directly - Wire up model command in cli.ts with help text - Update docs/configuration.md, lettabot.example.yaml, SKILL.md Model selection during `lettabot onboard` is preserved for new agent creation -- the selected model is passed to createAgent() but is NOT saved to the config file. Fixes #169 Co-authored-by: Cameron <cpfiffer@users.noreply.github.com>
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# LettaBot Configuration
|
|
# Copy this to lettabot.yaml and fill in your values.
|
|
#
|
|
# Server modes:
|
|
# - 'cloud': Use Letta Cloud (api.letta.com) with API key
|
|
# - 'selfhosted': Use self-hosted Letta server
|
|
|
|
server:
|
|
mode: cloud
|
|
# For cloud mode, set your API key (get one at https://app.letta.com):
|
|
apiKey: sk-let-YOUR-API-KEY
|
|
# For selfhosted mode, uncomment and set the base URL:
|
|
# mode: selfhosted
|
|
# baseUrl: http://localhost:8283
|
|
|
|
agent:
|
|
name: LettaBot
|
|
# Note: model is configured on the Letta agent server-side.
|
|
# Select a model during `lettabot onboard` or change it with `lettabot model set <handle>`.
|
|
|
|
# BYOK Providers (optional, cloud mode only)
|
|
# These will be synced to Letta Cloud on startup
|
|
# providers:
|
|
# - id: anthropic
|
|
# name: lc-anthropic
|
|
# type: anthropic
|
|
# apiKey: sk-ant-YOUR-ANTHROPIC-KEY
|
|
# - id: openai
|
|
# name: lc-openai
|
|
# type: openai
|
|
# apiKey: sk-YOUR-OPENAI-KEY
|
|
|
|
channels:
|
|
telegram:
|
|
enabled: true
|
|
token: YOUR-TELEGRAM-BOT-TOKEN
|
|
dmPolicy: pairing # 'pairing', 'allowlist', or 'open'
|
|
# slack:
|
|
# enabled: true
|
|
# appToken: xapp-...
|
|
# botToken: xoxb-...
|
|
# whatsapp:
|
|
# enabled: true
|
|
# selfChat: false
|
|
|
|
features:
|
|
cron: false
|
|
heartbeat:
|
|
enabled: false
|
|
intervalMin: 30
|
|
|
|
# Attachment handling (defaults to 20MB if omitted)
|
|
# attachments:
|
|
# maxMB: 20
|
|
# maxAgeDays: 14
|