From 95059edcfb9f65f902ade14a8272f9296d122067 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Fri, 2 Jun 2023 23:01:03 -0500 Subject: [PATCH] Rename to Community. --- BotSharp.sln | 22 +++++++++---------- .../BotSharp.Platform.Community.csproj} | 0 .../Handlers/ChatCompletionHandler.cs | 3 +-- .../LlamaSharpSettings.cs | 2 +- .../LlamaSharplServiceCollectionExtensions.cs | 4 ++-- src/WebStarter/WebStarter.csproj | 2 +- 6 files changed, 16 insertions(+), 17 deletions(-) rename src/Platforms/{BotSharp.Platform.LlamaSharp/BotSharp.Platform.LlamaSharp.csproj => BotSharp.Platform.Community/BotSharp.Platform.Community.csproj} (100%) rename src/Platforms/{BotSharp.Platform.LlamaSharp => BotSharp.Platform.Community}/Handlers/ChatCompletionHandler.cs (97%) rename src/Platforms/{BotSharp.Platform.LlamaSharp => BotSharp.Platform.Community}/LlamaSharpSettings.cs (92%) rename src/Platforms/{BotSharp.Platform.LlamaSharp => BotSharp.Platform.Community}/LlamaSharplServiceCollectionExtensions.cs (88%) diff --git a/BotSharp.sln b/BotSharp.sln index f5b78235..6d50899c 100644 --- a/BotSharp.sln +++ b/BotSharp.sln @@ -27,9 +27,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UiAdapters", "UiAdapters", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ChatbotUI", "src\UiAdapters\ChatbotUI\ChatbotUI.csproj", "{223895FB-EE4C-4225-8042-292352B43973}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BotSharp.Platform.LlamaSharp", "src\Platforms\BotSharp.Platform.LlamaSharp\BotSharp.Platform.LlamaSharp.csproj", "{0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HuggingChatUI", "src\UiAdapters\HuggingChatUI\HuggingChatUI.csproj", "{1340286B-2E39-4CE6-BFD2-0B6B124641D0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HuggingChatUI", "src\UiAdapters\HuggingChatUI\HuggingChatUI.csproj", "{1340286B-2E39-4CE6-BFD2-0B6B124641D0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BotSharp.Platform.Community", "src\Platforms\BotSharp.Platform.Community\BotSharp.Platform.Community.csproj", "{6D2627B2-2531-48C2-B560-3F89FAE82A61}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -103,14 +103,6 @@ Global {223895FB-EE4C-4225-8042-292352B43973}.Release|Any CPU.Build.0 = Release|Any CPU {223895FB-EE4C-4225-8042-292352B43973}.Release|x64.ActiveCfg = Release|Any CPU {223895FB-EE4C-4225-8042-292352B43973}.Release|x64.Build.0 = Release|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Debug|x64.ActiveCfg = Debug|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Debug|x64.Build.0 = Debug|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Release|Any CPU.Build.0 = Release|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Release|x64.ActiveCfg = Release|Any CPU - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D}.Release|x64.Build.0 = Release|Any CPU {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Debug|Any CPU.Build.0 = Debug|Any CPU {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -119,6 +111,14 @@ Global {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Release|Any CPU.Build.0 = Release|Any CPU {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Release|x64.ActiveCfg = Release|Any CPU {1340286B-2E39-4CE6-BFD2-0B6B124641D0}.Release|x64.Build.0 = Release|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Debug|x64.ActiveCfg = Debug|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Debug|x64.Build.0 = Debug|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Release|Any CPU.Build.0 = Release|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Release|x64.ActiveCfg = Release|Any CPU + {6D2627B2-2531-48C2-B560-3F89FAE82A61}.Release|x64.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -131,8 +131,8 @@ Global {286C7DE5-1EBC-4D28-AB25-4FAAD4C31D2A} = {FFA662D3-B67B-478D-92FC-76DC5EB64412} {B874E946-AE39-4731-8DA5-16A99115D111} = {FFA662D3-B67B-478D-92FC-76DC5EB64412} {223895FB-EE4C-4225-8042-292352B43973} = {42226933-0A0D-48E8-85EC-AFE773A1F841} - {0D2CA3E8-11A1-4CA4-B07B-4EF01378866D} = {FFA662D3-B67B-478D-92FC-76DC5EB64412} {1340286B-2E39-4CE6-BFD2-0B6B124641D0} = {42226933-0A0D-48E8-85EC-AFE773A1F841} + {6D2627B2-2531-48C2-B560-3F89FAE82A61} = {FFA662D3-B67B-478D-92FC-76DC5EB64412} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {A9969D89-C98B-40A5-A12B-FC87E55B3A19} diff --git a/src/Platforms/BotSharp.Platform.LlamaSharp/BotSharp.Platform.LlamaSharp.csproj b/src/Platforms/BotSharp.Platform.Community/BotSharp.Platform.Community.csproj similarity index 100% rename from src/Platforms/BotSharp.Platform.LlamaSharp/BotSharp.Platform.LlamaSharp.csproj rename to src/Platforms/BotSharp.Platform.Community/BotSharp.Platform.Community.csproj diff --git a/src/Platforms/BotSharp.Platform.LlamaSharp/Handlers/ChatCompletionHandler.cs b/src/Platforms/BotSharp.Platform.Community/Handlers/ChatCompletionHandler.cs similarity index 97% rename from src/Platforms/BotSharp.Platform.LlamaSharp/Handlers/ChatCompletionHandler.cs rename to src/Platforms/BotSharp.Platform.Community/Handlers/ChatCompletionHandler.cs index 8c1334ca..5cdacc42 100644 --- a/src/Platforms/BotSharp.Platform.LlamaSharp/Handlers/ChatCompletionHandler.cs +++ b/src/Platforms/BotSharp.Platform.Community/Handlers/ChatCompletionHandler.cs @@ -1,6 +1,5 @@ using BotSharp.Abstraction; using BotSharp.Abstraction.Models; -using BotSharp.Platform.LlamaSharp; using LLama; using System; using System.Collections.Generic; @@ -10,7 +9,7 @@ using System.Runtime; using System.Text; using System.Threading.Tasks; -namespace BotSharp.Platform.Local.Handlers; +namespace BotSharp.Platform.Community.Handlers; public class ChatCompletionHandler : IChatCompletionHandler { diff --git a/src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharpSettings.cs b/src/Platforms/BotSharp.Platform.Community/LlamaSharpSettings.cs similarity index 92% rename from src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharpSettings.cs rename to src/Platforms/BotSharp.Platform.Community/LlamaSharpSettings.cs index 42a67c05..39ffbcd5 100644 --- a/src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharpSettings.cs +++ b/src/Platforms/BotSharp.Platform.Community/LlamaSharpSettings.cs @@ -1,4 +1,4 @@ -namespace BotSharp.Platform.LlamaSharp; +namespace BotSharp.Platform.Community; public class LlamaSharpSettings { diff --git a/src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharplServiceCollectionExtensions.cs b/src/Platforms/BotSharp.Platform.Community/LlamaSharplServiceCollectionExtensions.cs similarity index 88% rename from src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharplServiceCollectionExtensions.cs rename to src/Platforms/BotSharp.Platform.Community/LlamaSharplServiceCollectionExtensions.cs index c26275da..ae78df12 100644 --- a/src/Platforms/BotSharp.Platform.LlamaSharp/LlamaSharplServiceCollectionExtensions.cs +++ b/src/Platforms/BotSharp.Platform.Community/LlamaSharplServiceCollectionExtensions.cs @@ -1,6 +1,6 @@ using BotSharp.Abstraction; -using BotSharp.Platform.LlamaSharp; -using BotSharp.Platform.Local.Handlers; +using BotSharp.Platform.Community; +using BotSharp.Platform.Community.Handlers; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; diff --git a/src/WebStarter/WebStarter.csproj b/src/WebStarter/WebStarter.csproj index 63354942..f2cf8992 100644 --- a/src/WebStarter/WebStarter.csproj +++ b/src/WebStarter/WebStarter.csproj @@ -28,7 +28,7 @@ - +