-
-
Notifications
You must be signed in to change notification settings - Fork 582
refine image response and settings #1201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||
PR Type
Enhancement
Description
Reorganize image-related endpoints from InstructModeController to ImageGenerationController
Add four new image operation endpoints: generation, variation, edit, mask-edit
Refactor image response helper to accept and pass saved files parameter
Add DALL-E and GPT image model configurations to settings
Diagram Walkthrough
File Walkthrough
ImageGenerationController.cs
Consolidate image operations into dedicated controllersrc/Infrastructure/BotSharp.OpenAPI/Controllers/ImageGenerationController.cs
composition
/instruct/image-variation/form
/instruct/image-edit/form
/instruct/image-mask-edit/form
AiResponseHelper.cs
Enhance image response helper with files parametersrc/Plugins/BotSharp.Plugin.ImageHandler/Helpers/AiResponseHelper.cs
parameter
empty
parameter
InstructModeController.cs
Remove migrated image endpoints from controllersrc/Infrastructure/BotSharp.OpenAPI/Controllers/InstructModeController.cs
ImageVariation, ImageEdit, ImageMaskEdit)
ComposeImageFn.cs
Update image response helper invocationsrc/Plugins/BotSharp.Plugin.ImageHandler/Functions/ComposeImageFn.cs
AiResponseHelper
AiResponseHelper.GetImageGenerationResponse
EditImageFn.cs
Update image response helper invocationsrc/Plugins/BotSharp.Plugin.ImageHandler/Functions/EditImageFn.cs
AiResponseHelper
AiResponseHelper.GetImageGenerationResponse
GenerateImageFn.cs
Update image response helper invocationsrc/Plugins/BotSharp.Plugin.ImageHandler/Functions/GenerateImageFn.cs
AiResponseHelper
AiResponseHelper.GetImageGenerationResponse
appsettings.json
Add image model provider configurationssrc/WebStarter/appsettings.json
variation settings
quality/style options
capabilities
capabilities