-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
.Net: Improve the ITextToImageService
abstractions to support ExecutionSettings
#8068
base: main
Are you sure you want to change the base?
.Net: Improve the ITextToImageService
abstractions to support ExecutionSettings
#8068
Commits on Aug 9, 2024
-
Improving the ITextToImageService to support ExecutionSettings, Image…
…Content and TextContent
Configuration menu - View commit details
-
Copy full SHA for 1f567f3 - Browse repository at this point
Copy the full SHA 1f567f3View commit details
Commits on Aug 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0af318e - Browse repository at this point
Copy the full SHA 0af318eView commit details
Commits on Aug 14, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 201423b - Browse repository at this point
Copy the full SHA 201423bView commit details -
Implement GetImageContentsAsync in OpenAITextToImageService
- Added the GetImageContentsAsync method to the OpenAITextToImageService class. - Implemented validation for input, including width, height, quality, and style settings. - Supported image sizes include 256x256, 512x512, 1024x1024, 1792x1024, and 1024x1792. - Added checks for supported qualities ('standard', 'hd') and styles ('vivid', 'natural'). - Constructed the request body for image generation and processed the response to handle both URLs and base64-encoded images. - Converted image strings into ImageContent objects, ensuring proper handling of data URIs and HTTP URLs.
Configuration menu - View commit details
-
Copy full SHA for 6895c05 - Browse repository at this point
Copy the full SHA 6895c05View commit details -
Add unit tests for GetImageContentsAsync method
- Implemented unit tests for the GetImageContentsAsync method in OpenAITextToImageService. - Added a test to verify that the method returns expected ImageContent when provided with valid input. - Added parameterized tests using [Theory] and [InlineData] to cover a variety of scenarios: - Valid URL and base64 image data inputs. - Validation of input sizes, quality, and style parameters. - Ensured NotSupportedException is thrown for unsupported sizes, quality, and style. - Tests ensure that both HTTP URLs and base64-encoded images are handled correctly, with proper assertions on the returned ImageContent objects.
Configuration menu - View commit details
-
Copy full SHA for ef12678 - Browse repository at this point
Copy the full SHA ef12678View commit details -
Merge pull request #4 from aghimir3/issues/5657-itexttoimage-ag
.NET Add Style and Quality Parameters Support with Execution Settings
Configuration menu - View commit details
-
Copy full SHA for 9a47d7c - Browse repository at this point
Copy the full SHA 9a47d7cView commit details
Commits on Sep 13, 2024
-
Merge branch 'main' of https://github.com/microsoft/semantic-kernel i…
…nto issues/5657-itexttoimage-update
Configuration menu - View commit details
-
Copy full SHA for f58e689 - Browse repository at this point
Copy the full SHA f58e689View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36d4fb9 - Browse repository at this point
Copy the full SHA 36d4fb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9e40b4 - Browse repository at this point
Copy the full SHA b9e40b4View commit details
Commits on Sep 16, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23e2f03 - Browse repository at this point
Copy the full SHA 23e2f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e0c967 - Browse repository at this point
Copy the full SHA 3e0c967View commit details
Commits on Sep 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e7f87eb - Browse repository at this point
Copy the full SHA e7f87ebView commit details
Commits on Sep 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 17c1492 - Browse repository at this point
Copy the full SHA 17c1492View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2141016 - Browse repository at this point
Copy the full SHA 2141016View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc7f8ef - Browse repository at this point
Copy the full SHA dc7f8efView commit details
Commits on Sep 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 373870e - Browse repository at this point
Copy the full SHA 373870eView commit details -
Configuration menu - View commit details
-
Copy full SHA for de0c4f2 - Browse repository at this point
Copy the full SHA de0c4f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for a783563 - Browse repository at this point
Copy the full SHA a783563View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34da6a7 - Browse repository at this point
Copy the full SHA 34da6a7View commit details
Commits on Sep 27, 2024
-
Merge branch 'main' of https://github.com/microsoft/semantic-kernel i…
…nto issues/5657-itexttoimage-update
Configuration menu - View commit details
-
Copy full SHA for 7f5ec3b - Browse repository at this point
Copy the full SHA 7f5ec3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0c95cd - Browse repository at this point
Copy the full SHA f0c95cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1681cd4 - Browse repository at this point
Copy the full SHA 1681cd4View commit details
Commits on Sep 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e2177c4 - Browse repository at this point
Copy the full SHA e2177c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31b6d8c - Browse repository at this point
Copy the full SHA 31b6d8cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ea6fab - Browse repository at this point
Copy the full SHA 3ea6fabView commit details -
Configuration menu - View commit details
-
Copy full SHA for af81e60 - Browse repository at this point
Copy the full SHA af81e60View commit details -
Configuration menu - View commit details
-
Copy full SHA for a459d54 - Browse repository at this point
Copy the full SHA a459d54View commit details