mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 09:46:27 +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
@@ -1,6 +1,11 @@
|
||||
@using AIStudio.Chat.Compression
|
||||
@using AIStudio.Settings.DataModel
|
||||
@inherits MSGComponentBase
|
||||
|
||||
<MudDialog>
|
||||
<TitleContent>
|
||||
<DialogTitleWithChatCompressionSettings Title="@(this.MudDialog.Title ?? string.Empty)" SettingsClosed="@this.ApplyChangedSettingsAsync"/>
|
||||
</TitleContent>
|
||||
<DialogContent>
|
||||
<MudStack Spacing="3">
|
||||
<MudJustifiedText Typo="Typo.body1">
|
||||
@@ -39,7 +44,7 @@
|
||||
</MudJustifiedText>
|
||||
}
|
||||
|
||||
@if (this.CanCompress && this.Subject is ContextWindowFullSubject.EMBEDDED_CHAT)
|
||||
@if (this.CanCompress && this.CompressionTarget is ChatCompressionTarget.SAME_CHAT)
|
||||
{
|
||||
<MudJustifiedText Typo="Typo.body1">
|
||||
@TA("When you compress the conversation, the AI summarizes it, and the summary takes the place of the earlier messages. Your message stays in the input field, so you can send it afterward.")
|
||||
@@ -63,6 +68,20 @@
|
||||
@TA("You can shorten your message, remove some of its files, or select a model which takes longer texts.")
|
||||
</MudJustifiedText>
|
||||
}
|
||||
|
||||
@if (this.SettingsManager.ConfigurationData.ChatCompression.ContextWindowFullBehavior is ContextWindowFullBehavior.ASK)
|
||||
{
|
||||
<MudJustifiedText Typo="Typo.body2">
|
||||
@if (this.Subject is ContextWindowFullSubject.ASSISTANT_REQUEST)
|
||||
{
|
||||
@TA("With the gear at the top, you can choose what AI Studio does in such a case from now on, e.g., send the request without asking.")
|
||||
}
|
||||
else
|
||||
{
|
||||
@TA("With the gear at the top, you can choose what AI Studio does in such a case from now on, e.g., compress automatically.")
|
||||
}
|
||||
</MudJustifiedText>
|
||||
}
|
||||
</MudStack>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
|
||||
Reference in new issue
Block a user