first implementation - image/drawing integration

This commit is contained in:
Adrien
2026-04-04 12:56:56 +02:00
parent fc5b22fba1
commit 5acfdd33c1
42 changed files with 2854 additions and 151 deletions
+15 -1
View File
@@ -2,11 +2,25 @@ import { defineStore } from 'pinia'
import { ref } from 'vue'
import { api } from '@/services/api'
export interface ChatSource {
type: 'TEXT' | 'FIGURE'
bookTitle: string
page: number | null
// TEXT-specific
chunkText?: string
// FIGURE-specific
figureId?: string
label?: string
caption?: string
figureType?: string
imageUrl?: string
}
export interface ChatMessage {
id: string
role: 'USER' | 'ASSISTANT'
content: string
sources: Array<{ bookTitle: string; page: number | null; chunkText?: string }>
sources: ChatSource[]
createdAt: string
}