fix typo
This commit is contained in:
parent
d22502f2d7
commit
282773ba5c
|
|
@ -28,10 +28,6 @@
|
|||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="SixLabors.ImageSharp" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Infrastructure\BotSharp.Core\BotSharp.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ public class FileHandlerPlugin : IBotSharpPlugin
|
|||
{
|
||||
public string Id => "65be5aee-48df-4ff8-a50a-05c8bcd2a793";
|
||||
public string Name => "File Handler";
|
||||
public string Description => "AI reads files, such as image, pdf, excel";
|
||||
public string IconUrl => "https://lirp.cdn-website.com/6f8d6d8a/dms3rep/multi/opt/API_Icon-640w.png";
|
||||
public string Description => "AI handles files.";
|
||||
public string IconUrl => "https://cdn-icons-png.flaticon.com/512/2567/2567656.png";
|
||||
public string[] AgentIds => [];
|
||||
|
||||
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
||||
|
|
@ -21,5 +21,4 @@ public class FileHandlerPlugin : IBotSharpPlugin
|
|||
|
||||
services.AddScoped<IAgentUtilityHook, FileHandlerUtilityHook>();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,26 +2,14 @@ namespace BotSharp.Plugin.ImageHandler.Hooks;
|
|||
|
||||
public class ImageHandlerUtilityHook : IAgentUtilityHook
|
||||
{
|
||||
private const string READ_IMAGE_FN = "util-file-read_image";
|
||||
private const string GENERATE_IMAGE_FN = "util-file-generate_image";
|
||||
private const string EDIT_IMAGE_FN = "util-file-edit_image";
|
||||
private const string READ_IMAGE_FN = "util-image-read_image";
|
||||
private const string GENERATE_IMAGE_FN = "util-image-generate_image";
|
||||
private const string EDIT_IMAGE_FN = "util-image-edit_image";
|
||||
|
||||
public void AddUtilities(List<AgentUtility> utilities)
|
||||
{
|
||||
var items = new List<AgentUtility>
|
||||
{
|
||||
new AgentUtility
|
||||
{
|
||||
Category = "image",
|
||||
Name = UtilityName.ImageGenerator,
|
||||
Items = [
|
||||
new UtilityItem
|
||||
{
|
||||
FunctionName = GENERATE_IMAGE_FN,
|
||||
TemplateName = $"{GENERATE_IMAGE_FN}.fn"
|
||||
}
|
||||
]
|
||||
},
|
||||
new AgentUtility
|
||||
{
|
||||
Category = "image",
|
||||
|
|
@ -35,6 +23,18 @@ public class ImageHandlerUtilityHook : IAgentUtilityHook
|
|||
]
|
||||
},
|
||||
new AgentUtility
|
||||
{
|
||||
Category = "image",
|
||||
Name = UtilityName.ImageGenerator,
|
||||
Items = [
|
||||
new UtilityItem
|
||||
{
|
||||
FunctionName = GENERATE_IMAGE_FN,
|
||||
TemplateName = $"{GENERATE_IMAGE_FN}.fn"
|
||||
}
|
||||
]
|
||||
},
|
||||
new AgentUtility
|
||||
{
|
||||
Category = "image",
|
||||
Name = UtilityName.ImageEditor,
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@ using Microsoft.Extensions.Configuration;
|
|||
|
||||
namespace BotSharp.Plugin.ImageHandler;
|
||||
|
||||
public class FileHandlerPlugin : IBotSharpPlugin
|
||||
public class ImageHandlerPlugin : IBotSharpPlugin
|
||||
{
|
||||
public string Id => "bac8bbf3-da91-4c92-98d8-db14d68e75ae";
|
||||
public string Name => "Image Handler";
|
||||
public string Description => "AI handles images.";
|
||||
public string IconUrl => "https://lirp.cdn-website.com/6f8d6d8a/dms3rep/multi/opt/API_Icon-640w.png";
|
||||
public string IconUrl => "https://cdn-icons-png.flaticon.com/512/8002/8002135.png";
|
||||
public string[] AgentIds => [];
|
||||
|
||||
public void RegisterDI(IServiceCollection services, IConfiguration config)
|
||||
|
|
@ -23,5 +23,4 @@ public class FileHandlerPlugin : IBotSharpPlugin
|
|||
services.AddScoped<IAgentUtilityHook, ImageHandlerUtilityHook>();
|
||||
services.AddScoped<IImageConverter, ImageHandlerImageConverter>();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -431,24 +431,6 @@
|
|||
},
|
||||
|
||||
"FileHandler": {
|
||||
"Image": {
|
||||
"Reading": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-5-mini",
|
||||
"ImageDetailLevel": "auto"
|
||||
},
|
||||
"Generation": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-image-1"
|
||||
},
|
||||
"Edit": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-image-1",
|
||||
"ImageConverter": {
|
||||
"Provider": "file-handler"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Pdf": {
|
||||
"Reading": {
|
||||
"LlmProvider": "google-ai",
|
||||
|
|
@ -462,7 +444,24 @@
|
|||
}
|
||||
},
|
||||
|
||||
"Image"
|
||||
"ImageHandler": {
|
||||
"Reading": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-5-mini",
|
||||
"ImageDetailLevel": "auto"
|
||||
},
|
||||
"Generation": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-image-1"
|
||||
},
|
||||
"Edit": {
|
||||
"LlmProvider": "openai",
|
||||
"LlmModel": "gpt-image-1",
|
||||
"ImageConverter": {
|
||||
"Provider": "image-handler"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"AudioHandler": {
|
||||
"Audio": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue