mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 06:33:48 +00:00
Added context compression (#1198)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
28b88580a9
commit
8a4a26503b
54 files changed
+4582
-56
No files matched your search
@@ -63,15 +63,8 @@ public partial class SingleInputDialog : MSGComponentBase
|
||||
|
||||
private async Task HandleUserInputKeyDown(KeyboardEventArgs keyEvent)
|
||||
{
|
||||
var key = keyEvent.Key.ToLowerInvariant();
|
||||
var code = keyEvent.Code.ToLowerInvariant();
|
||||
if (key is not "enter" && code is not "enter" and not "numpadenter")
|
||||
return;
|
||||
|
||||
if (keyEvent is { AltKey: true } or { CtrlKey: true } or { MetaKey: true })
|
||||
return;
|
||||
|
||||
await this.Confirm();
|
||||
if (keyEvent.IsPlainEnter)
|
||||
await this.Confirm();
|
||||
}
|
||||
|
||||
private async Task Confirm()
|
||||
|
||||
Reference in new issue
Block a user