From 0984944c753445daf31af76e54b64c7f321b2830 Mon Sep 17 00:00:00 2001 From: Ionite Date: Wed, 30 Aug 2023 00:22:08 -0400 Subject: [PATCH] Add model based completion autocompletes --- .../Controls/ModelCard.axaml | 22 +- .../Controls/PromptCard.axaml | 29 +++ .../DesignData/MockCompletionProvider.cs | 2 +- .../DesignData/MockInferenceClientManager.cs | 42 ++-- .../DesignData/MockModelIndexService.cs | 3 + .../TagCompletion/CompletionProvider.cs | 206 +++++++++++------- .../TagCompletion/ICompletionProvider.cs | 2 +- .../Services/IInferenceClientManager.cs | 11 +- .../Services/InferenceClientManager.cs | 154 +++++++++---- .../InferenceTextToImageViewModel.cs | 26 ++- 10 files changed, 336 insertions(+), 161 deletions(-) diff --git a/StabilityMatrix.Avalonia/Controls/ModelCard.axaml b/StabilityMatrix.Avalonia/Controls/ModelCard.axaml index 8d8897ae..acc4fd55 100644 --- a/StabilityMatrix.Avalonia/Controls/ModelCard.axaml +++ b/StabilityMatrix.Avalonia/Controls/ModelCard.axaml @@ -7,9 +7,11 @@ xmlns:models="clr-namespace:StabilityMatrix.Core.Models;assembly=StabilityMatrix.Core" x:DataType="inference:ModelCardViewModel"> - - - + + + + +