thinktecture-labs / gen-ai-meetup-2024-10-integrate-mlms-into-dotnet-backends-with-openai-and-aspire

Slides and code samples for the talk "Integrate Multimodal Language Models into .NET Backends with OpenAI .NET API and .NET Aspire", given at the Generation AI Meetup in Karlsruhe, Germany in October 2024

Repository from Github https://github.comthinktecture-labs/gen-ai-meetup-2024-10-integrate-mlms-into-dotnet-backends-with-openai-and-aspireRepository from Github https://github.comthinktecture-labs/gen-ai-meetup-2024-10-integrate-mlms-into-dotnet-backends-with-openai-and-aspire

Integrate Multimodal Language Models into .NET Backends with OpenAI .NET API and .NET Aspire

This talk was given at the October 2024 Generation AI Meetup in Karlsruhe, Germany.

Prerequisites

You require the following prerequisites:

You can configure the API key by creating a file called appsettings.Development.json in the folder backend/AiInformationExtractionApi and add the following contents:

{
    "openAi": {
        "apiKey": "paste your OpenAI API key here"
    }
}

You can also use dotnet user-secrets to achieve the same thing.

How to compile and run the example

Simply build and run the solution via your IDE or with dotnet run.

The most important integration tests can be found in the AspireAppHost.IntegrationTests project:

  • TextIntegrationTests
  • SpeechIntegrationTests
  • ImageIntegrationTests

About

Slides and code samples for the talk "Integrate Multimodal Language Models into .NET Backends with OpenAI .NET API and .NET Aspire", given at the Generation AI Meetup in Karlsruhe, Germany in October 2024


Languages

Language:C# 60.8%Language:Less 13.9%Language:CSS 13.6%Language:HTML 11.5%Language:SCSS 0.1%Language:JavaScript 0.1%