Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FlowVision/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public partial class Form1 : Form
private FlowLayoutPanel messagesPanel;
private RichTextBox userInputTextBox;
private Button sendButton;
private List<LocalChatMessage> chatHistory = new List<LocalChatMessage>();
private Button microphoneButton; // New microphone button
private List<ChatMessage> chatHistory = new List<ChatMessage>();
// Speech recognition components
private SpeechRecognitionService speechRecognition;
private bool isListening = false;
Expand Down Expand Up @@ -410,7 +410,7 @@ public void AddMessage(string author, string message, bool isInbound)
}

// Create a new chat message and add to history
var chatMessage = new ChatMessage
var chatMessage = new LocalChatMessage
{
Author = author,
Content = message,
Expand Down Expand Up @@ -665,7 +665,7 @@ private void newChatToolStripMenuItem_Click(object sender, EventArgs e)
}
}

public class ChatMessage
public class LocalChatMessage
{
public string Author { get; set; }
public string Content { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion FlowVision/lib/Classes/ai/Actioner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public async Task<string> ExecuteAction(string actionPrompt)
}
}

internal void SetChatHistory(List<ChatMessage> chatHistory)
internal void SetChatHistory(List<LocalChatMessage> chatHistory)
{
actionerHistory.Clear();
foreach (var message in chatHistory)
Expand Down