18 lines
616 B
C#
18 lines
616 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using LinkToolAddin.host.llm.entity;
|
|
|
|
namespace LinkToolAddin.host.llm;
|
|
|
|
public interface Llm
|
|
{
|
|
public string model { get; set; }
|
|
public string temperature { get; set; }
|
|
public string top_p { get; set; }
|
|
public string max_tokens { get; set; }
|
|
|
|
public IAsyncEnumerable<string> SendChatStreamAsync(string message);
|
|
public IAsyncEnumerable<string> SendApplicationStreamAsync(string message);
|
|
public Task<string> SendChatAsync(LlmJsonContent jsonContent);
|
|
public Task<string> SendApplicationAsync(CommonInput commonInput);
|
|
} |