feat(bot): replace maxTokens with contextMessages option

- Switched `maxTokens` to `contextMessages` to set chat history length instead of token limit.
- Updated environment variables, NixOS module, and prompt building logic for consistency.
- Removed in-memory conversation history, now fetching from Nextcloud for better scalability.
This commit is contained in:
Harald Hoyer 2026-02-03 17:00:50 +01:00
parent 538d7623be
commit b35373b0ec
4 changed files with 122 additions and 109 deletions

View file

@ -6,7 +6,7 @@
enable = true;
nextcloudUrl = "https://nc.hoyer.xyz";
botSecretFile = config.sops.secrets."nextcloud-claude-bot/secret".path;
allowedUsers = [ "harald" ];
allowedUsers = []; # Allow all registered users
};
sops.secrets."nextcloud-claude-bot/secret" = {