2023-06-17 02:42:35 +00:00
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
|
|
|
|
|
|
public interface ITextCompletion
|
|
|
|
|
{
|
2023-10-08 20:46:42 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// The LLM provider like Microsoft Azure, OpenAI, ClaudAI
|
|
|
|
|
/// </summary>
|
|
|
|
|
string Provider { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Set model name, one provider can consume different model or version(s)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="model"></param>
|
|
|
|
|
void SetModelName(string model);
|
|
|
|
|
|
2023-06-17 02:42:35 +00:00
|
|
|
Task<string> GetCompletion(string text);
|
|
|
|
|
}
|