mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-03 18:42:01 +00:00
Added settings for chat compression, with a model of its own (#1241)
This commit is contained in:
1 parent
899139c88b
commit
1fbc1f4796
71 files changed
+3023
-797
No files matched your search
@@ -0,0 +1,32 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
/// <summary>
|
||||
/// What AI Studio does when a message would fill the context window of the model.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// It applies where a chat asks before sending: the chat, the embedded chat of the BeyondFacts Lab, and the
|
||||
/// assistants. An assistant cannot compress its request, so both ways to compress ask there instead. The
|
||||
/// embedded chat always replaces its history when it compresses, since it has no other chat to continue in.
|
||||
/// </remarks>
|
||||
public enum ContextWindowFullBehavior
|
||||
{
|
||||
/// <summary>
|
||||
/// Ask what to do: compress the chat, send the message anyway, or cancel.
|
||||
/// </summary>
|
||||
ASK = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Compress the chat without asking and continue in a new chat; the original chat stays as it is.
|
||||
/// </summary>
|
||||
COMPRESS_INTO_NEW_CHAT,
|
||||
|
||||
/// <summary>
|
||||
/// Compress the chat without asking and replace its history with the summary; the original messages are gone.
|
||||
/// </summary>
|
||||
COMPRESS_AND_REPLACE,
|
||||
|
||||
/// <summary>
|
||||
/// Send the message without asking; the provider may refuse it when it does not fit.
|
||||
/// </summary>
|
||||
SEND_WITHOUT_ASKING,
|
||||
}
|
||||
Reference in new issue
Block a user