Skip to content

Switch OllamaAiService to Microsoft.Extensions.AI IChatClient#7

Merged
workcontrolgit merged 2 commits into
masterfrom
develop
Apr 23, 2026
Merged

Switch OllamaAiService to Microsoft.Extensions.AI IChatClient#7
workcontrolgit merged 2 commits into
masterfrom
develop

Conversation

@workcontrolgit
Copy link
Copy Markdown
Owner

Summary

  • Add Microsoft.Extensions.AI.Abstractions 10.3.0 (GA with .NET 10)
  • Replace IOllamaApiClient with IChatClient in OllamaAiService; use GetResponseAsync / ChatResponse.Text (MEA 10.x API)
  • Register OllamaApiClient as singleton aliased to both IChatClient and IOllamaApiClient in ServiceRegistration
  • Update OllamaAiServiceTests and AiControllerTests to match new constructor signatures

Test plan

  • dotnet build — 0 errors
  • dotnet test — all unit tests pass

- Add Microsoft.Extensions.AI.Abstractions 10.3.0 (GA with .NET 10)
- Replace IOllamaApiClient with IChatClient in OllamaAiService
- Use GetResponseAsync / ChatResponse.Text (MEA 10.x API)
- Register OllamaApiClient as singleton aliased to both IChatClient and IOllamaApiClient
- Update OllamaAiServiceTests and AiControllerTests to match new signatures
@workcontrolgit workcontrolgit merged commit 9bbdb10 into master Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant