

using AuthorBuddy.Web.Models;

namespace AuthorBuddy.Web.Services;

public interface IOllamaService
{
    Task<IEnumerable<LLM_Model>> GetLocalModelsAsync();
    Task<bool> PullModelAsync(string modelName, IProgress<string> progress);
    Task<string> QuickSpellCheckAsync(string text);
    Task<float[]> GetEmbeddingAsync(string text);
    Task<bool> TestEmbeddingAsync(string model);
    Task<string> Chat(string model, string userMessage, string? systemPrompt = null);
    void Reconfigure(string ollamaUrl);
}
