diff --git a/src/dotnet/Common/Constants/Chat/MessageContentTypes.cs b/src/dotnet/Common/Constants/Chat/MessageContentTypes.cs new file mode 100644 index 0000000000..4fb7ba4598 --- /dev/null +++ b/src/dotnet/Common/Constants/Chat/MessageContentTypes.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FoundationaLLM.Common.Constants.Chat +{ + /// + /// + /// + public static class MessageContentTypes + { + /// + /// Plaintext and formatted text, such as markdown. + /// + public const string Text = "text"; + + /// + /// Image file link. + /// + public const string Image = "image"; + + /// + /// General file link. + /// + public const string File = "file"; + + /// + /// HTML file link. + /// + public const string Html = "html"; + } +} diff --git a/src/dotnet/Common/Models/Chat/MessageContent.cs b/src/dotnet/Common/Models/Chat/MessageContent.cs index 81d646862a..30484acb04 100644 --- a/src/dotnet/Common/Models/Chat/MessageContent.cs +++ b/src/dotnet/Common/Models/Chat/MessageContent.cs @@ -13,6 +13,12 @@ public class MessageContent [JsonPropertyName("type")] public string? Type { get; set; } + /// + /// The file name related to the Value, if applicable. + /// + [JsonPropertyName("fileName")] + public string? FileName { get; set; } + /// /// The value of the message content. /// diff --git a/src/ui/UserPortal/components/ChatMessage.vue b/src/ui/UserPortal/components/ChatMessage.vue index e91092569c..737d7e399f 100644 --- a/src/ui/UserPortal/components/ChatMessage.vue +++ b/src/ui/UserPortal/components/ChatMessage.vue @@ -40,8 +40,26 @@ - - + +