Commit Graph

9 Commits

Author SHA1 Message Date
Saubhagya Patel
d0c5c1cacb settings: Add backend to change allow_edit_history to integer field.
This commit implements the backend of migrating the
`allow_edit_history` setting to
`message_edit_history_visibility_policy`.
This allows organizations, to have an intermediate setting to
view only the "Moves" history of the messages.

We still pass `realm_allow_edit_history` in `/register` response
though for older clients with its value being set depending on the
value of `realm_message_edit_history_visibility_policy`. We set
`realm_allow_edit_history` to `False` if the
`realm_message_edit_history_visibility_policy` is "None", and
`True` for "Moves only" or "All" message edit history.

Fixes part of #21398.

Co-authored-by: Shlok Patel <shlokcpatel2001@gmail.com>
Co-authored-by: Tim Abbott <tabbott@zulip.com>
2025-02-25 18:18:23 -08:00
Aman Agrawal
3d5307c0a9 message_summary: Add markdown support for generated summary. 2025-02-12 13:23:42 -08:00
Tim Abbott
ca0babc7e9 message_summary: Don't meter analytics query as AI work. 2025-02-12 13:23:42 -08:00
Aman Agrawal
2f5aea6604 message_summary: Add setting to put a monthly rate limit per user. 2025-02-06 12:03:24 -08:00
Aman Agrawal
7fb767c080 message_summary: Move cost per token configuration to settings. 2025-02-06 12:03:24 -08:00
Aman Agrawal
0bad785f03 message_summary: Log time to generate summary.
Mostly copy pasted things from markdown time logging.
2025-02-06 12:03:24 -08:00
Alex Vandiver
4dfb285b5b message_summary: Reorganize settings and secrets.
This allows arbitrary litellm-supported backends.
2025-01-29 14:55:35 -08:00
Alex Vandiver
69524b48b5 message_summary: Switch to orjson. 2025-01-29 14:55:35 -08:00
Alex Vandiver
816dde5b9a message_summary: Factor out into the actions package. 2025-01-29 14:55:35 -08:00