first implementation - image/drawing integration
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user