Skip to content

Use of deprecated Microsoft.Extensions.AI.Ollama package in official samples #514

@fahadmohammad

Description

@fahadmohammad

I noticed that some official samples/reference code are still using the Microsoft.Extensions.AI.Ollama package.
However, this package is now marked as deprecated, and the recommendation is to use OllamaSharp instead.
This creates confusion for developers trying to follow the official guidance, especially when:

  • The sample code relies on types like OllamaChatClient
  • These types are no longer available or maintained
  • The recommended alternative (OllamaSharp) has a different API surface and does not support the same extension methods (e.g., AsBuilder(), UseFunctionInvocation())

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions