mirror of
https://github.com/vegu-ai/talemate.git
synced 2026-07-10 12:28:50 +02:00
Major Features - API key encryption at rest using Fernet (OS keyring with file fallback) - Prompt Manager: unified UI with template groups, priority ordering, override tracking, response extractors - Scene context history review panel with token budgets and best-fit mode - Multiple concurrent director chats with auto-generated titles - Granular scene state reset dialog - Time passage insert/edit/delete in scene view - Image analysis via OpenAI-compatible and Talemate Client backends - Volatile context placement after scene history for improved prompt caching Improvements - Configurable narrator generation length per narration type - AI Aware conversation mode - Summarizer: custom instructions, writing style inclusion, short line filtering - Anthropic: adaptive thinking support, updated model list (opus-4-5/4-6, haiku-4-5) - Google: gemini-3.1 support - World editor: generate from topic, quick create state reinforcement, reorganized menus - Node editor: promote scene modules to global - Frontend: version mismatch detection, hideable bracket content, required scene name - TTS: improved pause handling, audio tag support for vocal markers (ElevenLabs v3) - Writing style template for AI-generated instructions - Added Kimi.jinja2 LLM prompt template - Option to disable character names in stopping strings - Client response length enforcement options - Graduated token count sliders - Increased summarizer token threshold max Bugfixes - Fix bracket/paren/brace terminators stripped from message ends - Fix colon in conversation causing content loss - Fix "Use as reference" navigating to blank page - Fix avatar regeneration and manual regenerate - Fix conversation agent ignoring generation length - Fix duplicate length instructions with reasoning enabled - Fix trailing newline on message edits - Fix summarize dialogue sending too much context with layered history - Fix layered history inspection and construction issues - Fix empty response handling in summarization - Fix context ID dot notation with dotted character names - Fix recursive retry in focal agent - Fix leading whitespace causing duplicate prepared responses - Fix summarization not stripping ANALYSIS OF lines - Fix template group selection/removal in prompt manager - Fix multiline text in parentheses/brackets parser - Fix determine_character_name resolution - Fix character activate/deactivate desyncing creative menu - Fix character image generation missing context - Fix LMStudio client not sending token limits - Fix Recent Scene images on newer Chromium - Fix sequential reinforcement messages cut off at first linebreak - Fix reinforcement removal not clearing state - Fixes #252, #256, #258 Deprecations - Removed context investigations (replaced by AI-assisted RAG mixin) - Removed deprecated prompt templates (fix-continuity-errors, fix-exposition, etc.) - Removed conversation/edit.jinja2, auto break repetition, CLI reset layered history --------- Co-authored-by: theDTV2 <47825738+theDTV2@users.noreply.github.com>
54 lines
1.2 KiB
Markdown
54 lines
1.2 KiB
Markdown
# Debug Logging
|
|
|
|
By default, Talemate logs at the `INFO` level. To enable more verbose `DEBUG` logging, set the `TALEMATE_DEBUG` environment variable to `1` before starting the server.
|
|
|
|
This will output detailed debug information from all components, which is useful for troubleshooting issues or reporting bugs.
|
|
|
|
When debug mode is enabled, all errors are automatically logged to a file at `logs/errors.log` in the Talemate root directory. The log file uses a rotating file handler with a maximum size of 10MB and keeps up to 5 backup files.
|
|
|
|
#### :material-linux: Linux
|
|
|
|
Prefix the start command with the environment variable:
|
|
|
|
```bash
|
|
TALEMATE_DEBUG=1 ./start.sh
|
|
```
|
|
|
|
Or if running manually:
|
|
|
|
```bash
|
|
TALEMATE_DEBUG=1 uv run src/talemate/server/run.py runserver --host 0.0.0.0 --port 5050
|
|
```
|
|
|
|
#### :material-microsoft-windows: Windows
|
|
|
|
Set the environment variable before running the start script:
|
|
|
|
```batch
|
|
SET TALEMATE_DEBUG=1
|
|
start.bat
|
|
```
|
|
|
|
## Disabling debug logging
|
|
|
|
To return to normal logging, unset the variable or set it to `0`:
|
|
|
|
#### :material-linux: Linux
|
|
|
|
```bash
|
|
unset TALEMATE_DEBUG
|
|
```
|
|
|
|
Or simply run without the prefix:
|
|
|
|
```bash
|
|
./start.sh
|
|
```
|
|
|
|
#### :material-microsoft-windows: Windows
|
|
|
|
```batch
|
|
SET TALEMATE_DEBUG=0
|
|
start.bat
|
|
```
|