---
title: "Discussion on \"Ollama ASP.NET Core: Running Local LLMs (and Switching to OpenAI with One Setting)\" | Hashnode"
description: "Discussion on \"Ollama ASP.NET Core: Running Local LLMs (and Switching to OpenAI with One Setting)\". How to run local LLMs with Ollama behind ASP.NET Core and switch to OpenAI with one configuration setting, using a provider-agnostic IAIGateway."
url: "https://hashnode.com/posts/ollama-aspnet-core-local-llms-openai/6abe995d3d1342779dd8dfb0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Ollama ASP.NET Core: Running Local LLMs (and Switching to OpenAI with One Setting)](https://rahmatafridi.hashnode.dev/ollama-aspnet-core-local-llms-openai?utm_source=hashnode&utm_medium=feed)

How to run local LLMs with Ollama behind ASP.NET Core and switch to OpenAI with one configuration setting, using a provider-agnostic IAIGateway.

Oct 1 · 10 min read · rahmatafridi.hashnode.dev  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#ollama](https://hashnode.com/tag/ollama)
-   [#ai](https://hashnode.com/tag/ai)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Rahmat Afridi](https://hashnode.com/@rahmatafridi)

@rahmatafridi

  
[View profile](https://hashnode.com/@rahmatafridi)

Senior .Net Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
