Add provider abstraction layer with Mistral and Ollama implementations
Define IProvider interface and implement concrete providers for Mistral (with custom DTOs for chat completion API) and Ollama (via OllamaSharp). Includes DI registration extensions using Microsoft.Extensions.AI.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Luna.Providers.Mistral.DTOs;
|
||||
|
||||
public class MistralMessage
|
||||
{
|
||||
[JsonPropertyName("role")]
|
||||
public required string Role { get; set; }
|
||||
|
||||
[JsonPropertyName("content")]
|
||||
public required string Content { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user