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.
9 lines
187 B
C#
9 lines
187 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Luna.Providers.Mistral.DTOs;
|
|
|
|
public class ResponseFormat
|
|
{
|
|
[JsonPropertyName("type")]
|
|
public required string Type { get; set; }
|
|
} |