feat: Update LLM context mode to use sentence-level context and enhance prompt for regex replacements

This commit is contained in:
JB
2025-10-26 08:42:41 -07:00
parent 10cd2c993c
commit 7951a4d992
5 changed files with 269 additions and 44 deletions
+2 -2
View File
@@ -33,6 +33,6 @@ ABOGEN_LLM_BASE_URL=http://localhost:11434 # Supply the server root; /v1 is add
ABOGEN_LLM_API_KEY=ollama
ABOGEN_LLM_MODEL=llama3.1:8b
ABOGEN_LLM_TIMEOUT=45
ABOGEN_LLM_CONTEXT_MODE=paragraph
ABOGEN_LLM_CONTEXT_MODE=sentence
# For custom prompts, keep the text on a single line or escape newlines.
#ABOGEN_LLM_PROMPT=You are assisting with audiobook preparation. Rewrite {{sentence}} for narration.
#ABOGEN_LLM_PROMPT=Provide regex replacements for any apostrophes in {{sentence}} using apply_regex_replacements.