Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions BotSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.Core.Rules", "src\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.Plugin.DeepSeekAI", "src\Plugins\BotSharp.Plugin.DeepSeekAI\BotSharp.Plugin.DeepSeekAI.csproj", "{AF329442-B48E-4B48-A18A-1C869D1BA6F5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.Plugin.LiteLLM", "src\Plugins\BotSharp.Plugin.LiteLLM\BotSharp.Plugin.LiteLLM.csproj", "{0016D0D4-BE65-4626-8C38-3464A7906F10}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.Plugin.MiniMaxAI", "src\Plugins\BotSharp.Plugin.MiniMaxAI\BotSharp.Plugin.MiniMaxAI.csproj", "{D92C1A49-3F64-4D0C-91C0-B14EA47D2503}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BotSharp.Core.Realtime", "src\Infrastructure\BotSharp.Core.Realtime\BotSharp.Core.Realtime.csproj", "{781F1465-365C-0F22-1775-25025DAFA4C7}"
Expand Down Expand Up @@ -739,6 +741,18 @@ Global
{AF329442-B48E-4B48-A18A-1C869D1BA6F5}.Release|x64.Build.0 = Release|Any CPU
{AF329442-B48E-4B48-A18A-1C869D1BA6F5}.Release|x86.ActiveCfg = Release|Any CPU
{AF329442-B48E-4B48-A18A-1C869D1BA6F5}.Release|x86.Build.0 = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|x64.ActiveCfg = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|x64.Build.0 = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|x86.ActiveCfg = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Debug|x86.Build.0 = Debug|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|Any CPU.Build.0 = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|x64.ActiveCfg = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|x64.Build.0 = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|x86.ActiveCfg = Release|Any CPU
{0016D0D4-BE65-4626-8C38-3464A7906F10}.Release|x86.Build.0 = Release|Any CPU
{D92C1A49-3F64-4D0C-91C0-B14EA47D2503}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D92C1A49-3F64-4D0C-91C0-B14EA47D2503}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D92C1A49-3F64-4D0C-91C0-B14EA47D2503}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -1015,6 +1029,7 @@ Global
{F812BAAE-5A7D-4DF7-8E71-70696B51C61F} = {E29DC6C4-5E57-48C5-BCB0-6B8F84782749}
{AFD64412-4D6A-452E-82A2-79E5D8842E29} = {E29DC6C4-5E57-48C5-BCB0-6B8F84782749}
{AF329442-B48E-4B48-A18A-1C869D1BA6F5} = {D5293208-2BEF-42FC-A64C-5954F61720BA}
{0016D0D4-BE65-4626-8C38-3464A7906F10} = {D5293208-2BEF-42FC-A64C-5954F61720BA}
{D92C1A49-3F64-4D0C-91C0-B14EA47D2503} = {D5293208-2BEF-42FC-A64C-5954F61720BA}
{781F1465-365C-0F22-1775-25025DAFA4C7} = {E29DC6C4-5E57-48C5-BCB0-6B8F84782749}
{C19D9AC1-97DD-8E65-E8DB-D295A095AA2D} = {32FAFFFE-A4CB-4FEE-BF7C-84518BBC6DCC}
Expand Down
21 changes: 21 additions & 0 deletions src/Plugins/BotSharp.Plugin.LiteLLM/BotSharp.Plugin.LiteLLM.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>$(TargetFramework)</TargetFramework>
<Nullable>enable</Nullable>
<LangVersion>$(LangVersion)</LangVersion>
<VersionPrefix>$(BotSharpVersion)</VersionPrefix>
<GeneratePackageOnBuild>$(GeneratePackageOnBuild)</GeneratePackageOnBuild>
<GenerateDocumentationFile>$(GenerateDocumentationFile)</GenerateDocumentationFile>
<OutputPath>$(SolutionDir)packages</OutputPath>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="OpenAI" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\Infrastructure\BotSharp.Core\BotSharp.Core.csproj" />
</ItemGroup>

</Project>
18 changes: 18 additions & 0 deletions src/Plugins/BotSharp.Plugin.LiteLLM/LiteLLMPlugin.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using BotSharp.Abstraction.Plugins;
using BotSharp.Plugin.LiteLLM.Providers.Text;
using BotSharp.Plugin.LiteLLM.Providers.Chat;

namespace BotSharp.Plugin.LiteLLM;

public class LiteLLMPlugin : IBotSharpPlugin
{
public string Id => "b3c1f0d2-6a4e-4d1b-9c8a-2f7e5a9d4b60";
public string Name => "LiteLLM";
public string Description => "LiteLLM AI gateway. Call 100+ LLM providers through a single OpenAI-compatible endpoint.";
public string IconUrl => "https://litellm.ai/favicon.ico";
public void RegisterDI(IServiceCollection services, IConfiguration config)
{
services.AddScoped<ITextCompletion, TextCompletionProvider>();
services.AddScoped<IChatCompletion, ChatCompletionProvider>();
}
}
Loading