Break user texts up into separate messages

This commit is contained in:
Alex Gleason committed 2025-09-14 14:25:02 -05:00
1 parent 76fa9940db
commit 425976bb82
8 files changed
+151 -55

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ export class SessionManager {
/**
* Send a message and start AI generation
*/
async sendMessage(projectId: string, content: string, providerModel: string): Promise<void> {
async sendMessage(projectId: string, content: string | Array<OpenAI.Chat.Completions.ChatCompletionContentPartText>, providerModel: string): Promise<void> {
const session = this.sessions.get(projectId);
if (!session || session.isLoading) return;