@using AIStudio.Chat.Compression @inherits MSGComponentBase @if (this.Target is ChatCompressionTarget.SAME_CHAT) { @TA("The AI summarizes this conversation, the content of its documents included. The summary then takes the place of the earlier messages, while your last message and the last answer of the AI stay as they are. AI Studio does not keep the earlier messages. Since the conversation is much shorter afterward, every further message costs fewer tokens.") } else { @TA("The AI summarizes this chat, the content of its documents included, and the conversation continues in a new chat. It holds the summary, your last message with its files, and the last answer of the AI. Since the new chat is much shorter, every further message costs fewer tokens. This chat stays as it is, so the whole conversation remains available.") } @this.SummaryScope @if (this.Plan.PendingQuestion is not null) { @TA("Your last message has no answer yet. It goes into the input field of the new chat, so you can send it there.") } @if (this.StoresChatFirst) { @T("This chat has changes which are not saved yet. AI Studio saves it first, so that the whole conversation remains available.") } @if (this.HasDocumentsToSummarize) { @T("The summary takes in the content of the documents attached in this chat. This takes longer than summarizing the messages alone.") } @if (this.HasImagesToSummarize) { @T("The AI does not look at the images in this chat again. The summary keeps what the conversation said about them.") } @if (this.Target is ChatCompressionTarget.NEW_CHAT) { } @if (this.isSummarizing) { @this.ProgressMessage } @if (!string.IsNullOrWhiteSpace(this.issue)) { @this.issue } @T("Cancel") @if (this.Target is ChatCompressionTarget.SAME_CHAT) { @T("Compress") } else { @T("Compress & switch") }