WeKnora/internal/application
LuckVd 7972cdd251
fix(knowledge): make the knowledge base description token budget configurable (#4230)
The knowledge base description call hardcoded MaxTokens=800, sized for a
short JSON reply. Reasoning-style models can spend that budget on thinking
even when thinking is disabled, returning an empty completion that fails
generation with 'no gist' (issue #4221), and deployments had no way to
raise it.

Raise the default to 2048 and let operators override it with the
KNOWLEDGE_BASE_PROFILE_MAX_TOKENS environment variable (invalid or
non-positive values fall back to the default). Documented in .env.example.

Co-authored-by: LuckVd <LuckVd@users.noreply.github.com>
2026-10-13 16:43:34 +08:00
..
access feat(wiki): 增加跨知识库 Wiki 搜索 POST /wiki-search (#3535) 2026-09-25 22:22:58 +08:00
attachment feat(agent): read chat attachments on demand (#4203) 2026-10-13 14:37:17 +08:00
repository feat(agent): read chat attachments on demand (#4203) 2026-10-13 14:37:17 +08:00
service fix(knowledge): make the knowledge base description token budget configurable (#4230) 2026-10-13 16:43:34 +08:00