8 | @if (Messages != null)
9 | {
10 | @foreach (var item in Messages)
11 | {
12 |
13 | @if (item.ChatGpt)
14 | {
15 |
16 |
17 |
18 |
19 |
20 | }
21 | else
22 | {
23 |
24 |
25 |
27 |
28 |
29 |
30 | }
31 |
32 |
33 |
34 | mdi-content-copy
35 |
36 |
37 |
38 |
39 |
40 | }
41 | }
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/ChatGpt.Shared/Components/Dialogues.razor.cs:
--------------------------------------------------------------------------------
1 | using ChatGpt.Shared.Interop;
2 | using Masa.Blazor;
3 |
4 | namespace ChatGpt.Shared;
5 |
6 | public partial class Dialogues
7 | {
8 | [Parameter]
9 | public EventCallback