Learn how to use local AI models with .NET Aspire, integrating Ollama for running models locally and easily transitioning to cloud-hosted models. The guide covers setting up Ollama, adding and configuring models, and using Microsoft.Extensions.AI abstractions to facilitate switching between local and cloud AI services. Discover how to set up an Ollama server, download and manage models, and integrate them into your client application, as well as handling deployments using cloud-based AI services like Azure OpenAI.
Table of contents
Setting up Ollama in .NET Aspire Copy linkRunning a local AI model Copy linkUsing the model in your application Copy linkSupporting cloud-hosted models Copy linkConclusion Copy linkSort: