AuthorBuddy/Services/IOllamaService.cs
2026-05-20 06:12:54 +02:00

16 lines
516 B
C#

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);
}