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:
parent
538d7623be
commit
b35373b0ec
4 changed files with 122 additions and 109 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue