Update to use Microsoft.Extensions.AI.Abstractions

Open
#38 10 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
ai, backend

Research direction

Start with src/SmartComponents.Inference/IInferenceBackend.cs and trace its references across the repository, then inspect the SmartComponents.Inference.OpenAI project. The work is done when IInferenceBackend is replaced by IChatClient, the OpenAI project can be removed, and the existing components work with supported IChatClient backends.

Written by the indexing model from the issue text.

Description

Now that Microsoft.Extensions.AI.Abstractions is published, we should replace IInferenceBackend with IChatClient. This should also allow us to remove SmartComponents.Inference.OpenAI completely, as the code here would instantly work with any LLM backend that has a corresponding IChatClient.

Dominant language
C#
Stars
509
Forks
61
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/smartcomponents

All issues in dotnet/smartcomponents

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.