2024-07-18 20:17:40 +00:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
|
|
2024-07-19 03:28:24 +00:00
|
|
|
public interface IImageCompletion
|
2024-07-18 20:17:40 +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">deployment name</param>
|
|
|
|
|
void SetModelName(string model);
|
|
|
|
|
|
2024-07-19 03:28:24 +00:00
|
|
|
Task<RoleDialogModel> GetImageGeneration(Agent agent, RoleDialogModel message);
|
|
|
|
|
|
2024-07-18 22:07:14 +00:00
|
|
|
Task<RoleDialogModel> GetImageVariation(Agent agent, RoleDialogModel message, Stream image, string imageFileName);
|
2024-07-18 20:17:40 +00:00
|
|
|
}
|