Blog
Blog posts on .NET, Azure, and more.
Create Images using Semantic Kernel and Azure Open AI
December 31, 2024 by Anuraj
dotnet AI
In this blog post, we’ll learn how to create images using Semantic Kernel and Azure Open AI in C#. We can use DALL-E model to generate the image. First we need to create a console application, we can use the command dotnet new console and then we need to add the Semantic Kernel nuget package. We can do it with dotnet add package Microsoft.SemanticKernel command.
Using Azure OpenAI global batch deployments in .NET and C#
December 19, 2024 by Anuraj
dotnet AI
The Azure OpenAI Batch API is designed to handle large-scale and high-volume processing tasks efficiently. Process asynchronous groups of requests with separate quota, with 24-hour target turnaround, at 50% less cost than global standard. In the Azure portal, we need to deploy the model as Global Batch. For this demo I am deploying Gpt 4o model with Global Batch as the deployment type.
Working with llamafile and Semantic Kernel
December 18, 2024 by Anuraj
dotnet AI
In this blog post, we’ll how to work with llamafile and Semantic Kernel. llamafile lets you distribute and run LLMs with a single file. We can download the LLaMA 3.2 1B Instruct from this GitHub
Mocking HttpClient in unit tests
November 27, 2024 by Anuraj
dotnet unittest
In this blog post, we’ll learn mock HttpClient in unit tests. Recently I started working on a C# wrapper on BlueSky API. To write the unit tests for the library, I had to mock HttpClient.
How to profile ASP.NET Core Minimal APIs using MiniProfiler
November 10, 2024 by Anuraj
dotnet AspNetCore MiniProfiler
In this blog post, we’ll learn how to profile ASP.NET Core Minimal APIs and Entity Framework using MiniProfiler. MiniProfiler is a library and UI for profiling your application from StackExchange team. By letting you see where your time is spent, which queries are run, and any other custom timings you want to add, MiniProfiler helps you debug issues and optimize performance.
Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub