2026-05-16 16:13:35 +02:00
|
|
|
|
|
|
|
|
|
2026-05-14 12:31:35 +02:00
|
|
|
using AuthorBuddy.Web.Models;
|
|
|
|
|
|
|
|
|
|
namespace AuthorBuddy.Web.Services;
|
|
|
|
|
|
|
|
|
|
public interface IOllamaService
|
|
|
|
|
{
|
2026-05-16 16:13:35 +02:00
|
|
|
Task<IEnumerable<LLM_Model>> GetLocalModelsAsync();
|
|
|
|
|
Task<bool> PullModelAsync(string modelName, IProgress<string> progress);
|
|
|
|
|
//Task<IList<double>> GetEmbeddingAsync(string text);
|
|
|
|
|
//Task<string> StreamStyleCheckAsync(string input);
|
|
|
|
|
//Task<string> AnswerBasedOnFactsAsync(string question, string facts);
|
|
|
|
|
//Task<string> QuickSpellCheckAsync(string text);
|
|
|
|
|
void Reconfigure(string ollamaUrl);
|
|
|
|
|
|
2026-05-14 12:31:35 +02:00
|
|
|
}
|