This pull request contains several changes to the HelloDallE8 project, primarily focusing on the implementation of image metadata management and Azure Blob Storage integration. The changes also include the removal of unused code and files, and updates to the project's dependencies.
Image Metadata and Azure Blob Storage Integration:
src/HelloDallE8/Components/ImageGenerationComponent.razor: Added new dependencies for Azure Blob Storage and image metadata management. Implemented a method to save images to Azure Blob Storage and added metadata to the images. Also, added exception handling to the image generation process. [1][2][3]
src/HelloDallE8/Components/Pages/Home.razor: Added a dependency for image metadata management and commented out some navigation links. Also, attempted to add metadata to the imageMetadataState object, but the code is currently commented out. [1][2][3]
src/HelloDallE8/Models/ImageMetadataState.cs: Created a new class for managing image metadata. This class provides methods for adding or updating metadata and an event for when the metadata changes.
src/HelloDallE8/Models/DallEComms.cs, src/HelloDallE8/Models/DallEImageResponse.cs, src/HelloDallE8/Models/DallEResponse.cs: Removed these files as they are no longer used. [1][2][3]
This pull request contains several changes to the
HelloDallE8
project, primarily focusing on the implementation of image metadata management and Azure Blob Storage integration. The changes also include the removal of unused code and files, and updates to the project's dependencies.Image Metadata and Azure Blob Storage Integration:
src/HelloDallE8/Components/ImageGenerationComponent.razor
: Added new dependencies for Azure Blob Storage and image metadata management. Implemented a method to save images to Azure Blob Storage and added metadata to the images. Also, added exception handling to the image generation process. [1] [2] [3]src/HelloDallE8/Components/Pages/Home.razor
: Added a dependency for image metadata management and commented out some navigation links. Also, attempted to add metadata to theimageMetadataState
object, but the code is currently commented out. [1] [2] [3]src/HelloDallE8/Models/ImageMetadataState.cs
: Created a new class for managing image metadata. This class provides methods for adding or updating metadata and an event for when the metadata changes.src/HelloDallE8/Services/AzureBlobStorageSettings.cs
: Created a new class for managing Azure Blob Storage settings. This class reads the settings from the application's configuration.src/HelloDallE8/Program.cs
: Added a dependency for the Azure Blob Storage settings and the image metadata state. Also, removed an unused dependency.Code and File Removal:
src/HelloDallE8/Components/QuestionsComponent.razor
: Removed an unused dependency.src/HelloDallE8/Models/DallEComms.cs
,src/HelloDallE8/Models/DallEImageResponse.cs
,src/HelloDallE8/Models/DallEResponse.cs
: Removed these files as they are no longer used. [1] [2] [3]src/HelloDallE8/Models/ResponseState.cs
: Moved this file from theServices
namespace to theModels
namespace.Dependencies Update:
src/HelloDallE8/HelloDallE8.csproj
: Added a package reference for Azure Storage Blobs.