WeKnora/internal/application
jiahao6635 eeef89db3b fix(wiki): set MaxTokens for generateWithTemplate LLM calls
Combined wiki extraction can require well over 8k completion tokens.
When MaxTokens is unset, OpenAI-compatible clients omit max_tokens and
providers such as DeepSeek default to 8192, truncating mid-JSON and
failing postprocess.wiki.extract with unexpected end of JSON input.

Set a 32768 completion budget for all generateWithTemplate calls so
large extracts can finish while short replies still stop early.

Fixes #2604
2026-08-12 11:45:06 +08:00
..
repository feat: support updating API key configuration 2026-08-12 11:43:03 +08:00
service fix(wiki): set MaxTokens for generateWithTemplate LLM calls 2026-08-12 11:45:06 +08:00