-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release: Version 1.1.1 HOTFIX merge #2 from development branch
# Release: Version 1.1.1 HOTFIX ## Description This pull request focuses on the newly added changes in Version 1.1.0, particularly in the Text Generation and Management features, as well as updates to the EGOIST-Models-Catalog and the addition of cross-platform support to the roadmap. ## Changes Made 1. **Text Generation Enhancements:** - Removed Markdown rendering capability due wpf limitions. - Introduced roleplay capabilities with characters and support for single-turn and multi-turn group roleplays. - Introduced interaction with local documents for seamless integration. - Introduced text completion feature for enhanced narritive experience. - Introduced Chat with AI for generating a diverse conversations with AI assistants. 2. **Management Features:** - Introduced a Characters section to manage roleplay characters effectively, explore created or downloaded roleplay characters with personalities and descriptions. - Introduced a Character Creator feature for building detailed character cards., allowing users to build character cards to instruct AI behavior. - Introduced the ability to import TavernAI characters for a richer roleplay experience. 3. **EGOIST-Models-Catalog Update:** - Encouraged users to check the [EGOIST-Models-Catalog](https://github.com/LSXPrime/EGOIST-Models-Catalog) for the latest details on community-tested models on HuggingFace. - Updated instructions on [EGOIST-Models-Catalog](https://github.com/LSXPrime/EGOIST-Models-Catalog) to advise users to download tested models and characters from this repo the configuration files. 4. **Roadmap Expansion:** - Added a new roadmap section for Cross-Platform Support. - Plans to replace the WPF UI Framework (Avalonia / Uno) for improved cross-platform compatibility. - Future releases include Linux and MacOS binaries to broaden the application's reach. > HOTFIX: Fix crash on adding new completion session in Text Completion tab.
- Loading branch information
Showing
46 changed files
with
2,631 additions
and
722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace EGOIST.Data; | ||
|
||
public partial class ChatMessage : ObservableObject | ||
{ | ||
[ObservableProperty] | ||
private string _sender = string.Empty; | ||
[ObservableProperty] | ||
private string _message = string.Empty; | ||
[ObservableProperty] | ||
private bool _isEditable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
using System.Collections.ObjectModel; | ||
using System.ComponentModel; | ||
using System.Text; | ||
using LLama; | ||
|
||
namespace EGOIST.Data; | ||
|
||
public partial class ChatSession : ObservableObject, INotifyPropertyChanged | ||
{ | ||
public string SessionName { get; set; } | ||
|
||
[ObservableProperty] | ||
private Dictionary<int, ObservableCollection<ChatMessage>> _chatMessages = new(); | ||
public ObservableCollection<ChatMessage> Messages => ChatMessages[CurrentLog]; | ||
|
||
|
||
#region Unused due LLama tokenizer/embeddings limitions | ||
[ObservableProperty] | ||
public int _currentLog = 0; | ||
public string CurrentLogSTR => $"{CurrentLog} / {Edits}"; | ||
public int Edits => ChatMessages.Count - 1; | ||
public bool Edited => Edits > 0; | ||
#endregion | ||
|
||
#region LLamaSharp | ||
[NonSerialized] | ||
public StatefulExecutorBase? Executor; | ||
#endregion | ||
|
||
|
||
public ChatSession() | ||
{ | ||
SessionName = $"Chat {DateTime.Now}"; | ||
ChatMessages.Add(0, new()); | ||
} | ||
|
||
public ChatMessage AddMessage(string user, string message) | ||
{ | ||
var messageInput = new ChatMessage { Sender = user, Message = message }; | ||
Messages.Add(messageInput); | ||
|
||
return messageInput; | ||
} | ||
|
||
public override string ToString() | ||
{ | ||
var stringBuilder = new StringBuilder(); | ||
|
||
foreach (var message in Messages) | ||
{ | ||
stringBuilder.AppendLine($"{message.Sender}: {message.Message}"); | ||
} | ||
|
||
return stringBuilder.ToString(); | ||
} | ||
|
||
public event PropertyChangedEventHandler PropertyChanged; | ||
|
||
public virtual void OnPropertyChanged(string propertyName) | ||
{ | ||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); | ||
} | ||
} |
Oops, something went wrong.