Added chat UI

This commit is contained in:
tsommer committed 2024-05-04 11:11:09 +02:00
1 parent 862ec9c36a
commit bb663d1b73
12 files changed
+631 -20

No files matched your search

@@ -0,0 +1,44 @@
using AIStudio.Provider;
using AIStudio.Settings;
using Microsoft.JSInterop;
namespace AIStudio.Chat;
/// <summary>
/// Represents an image inside the chat.
/// </summary>
public sealed class ContentImage : IContent
{
#region Implementation of IContent
/// <inheritdoc />
public bool InitialRemoteWait { get; set; } = false;
/// <inheritdoc />
public bool IsStreaming { get; set; } = false;
/// <inheritdoc />
public Func<Task> StreamingDone { get; set; } = () => Task.CompletedTask;
/// <inheritdoc />
public Func<Task> StreamingEvent { get; set; } = () => Task.CompletedTask;
/// <inheritdoc />
public Task CreateFromProviderAsync(IProvider provider, IJSRuntime jsRuntime, SettingsManager settings, Model chatModel, ChatThread chatChatThread, CancellationToken token = default)
{
throw new NotImplementedException();
}
#endregion
/// <summary>
/// The URL of the image.
/// </summary>
public string URL { get; set; } = string.Empty;
/// <summary>
/// The local path of the image.
/// </summary>
public string LocalPath { get; set; } = string.Empty;
}