Skip to content
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

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Commits on Aug 9, 2024

  1. Configuration menu
    Copy the full SHA
    1f567f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Configuration menu
    Copy the full SHA
    0af318e View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Configuration menu
    Copy the full SHA
    201423b View commit details
    Browse the repository at this point in the history
  2. 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.
    aghimir3 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    6895c05 View commit details
    Browse the repository at this point in the history
  3. 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.
    aghimir3 committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    ef12678 View commit details
    Browse the repository at this point in the history
  4. Merge pull request #4 from aghimir3/issues/5657-itexttoimage-ag

    .NET Add Style and Quality Parameters Support with Execution Settings
    RogerBarreto committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    9a47d7c View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Merge branch 'main' of https://github.com/microsoft/semantic-kernel i…

    …nto issues/5657-itexttoimage-update
    RogerBarreto committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    f58e689 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36d4fb9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b9e40b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Fix Warnings

    RogerBarreto committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    23e2f03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3e0c967 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    e7f87eb View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    17c1492 View commit details
    Browse the repository at this point in the history
  2. Updating ITs

    RogerBarreto committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    2141016 View commit details
    Browse the repository at this point in the history
  3. Address extra folder

    RogerBarreto committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    dc7f8ef View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2024

  1. Fix warnings

    RogerBarreto committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    373870e View commit details
    Browse the repository at this point in the history
  2. Fix warnings

    RogerBarreto committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    de0c4f2 View commit details
    Browse the repository at this point in the history
  3. Update Obsolete Concepts

    RogerBarreto committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    a783563 View commit details
    Browse the repository at this point in the history
  4. Fix warning

    RogerBarreto committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    34da6a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Merge branch 'main' of https://github.com/microsoft/semantic-kernel i…

    …nto issues/5657-itexttoimage-update
    RogerBarreto committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    7f5ec3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f0c95cd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1681cd4 View commit details
    Browse the repository at this point in the history

Commits on Sep 30, 2024

  1. Configuration menu
    Copy the full SHA
    e2177c4 View commit details
    Browse the repository at this point in the history
  2. Address PR comments

    RogerBarreto committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    31b6d8c View commit details
    Browse the repository at this point in the history
  3. Address UT and IT

    RogerBarreto committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    3ea6fab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    af81e60 View commit details
    Browse the repository at this point in the history
  5. Adding missing MS header

    RogerBarreto committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    a459d54 View commit details
    Browse the repository at this point in the history