27 lines
667 B
TypeScript
27 lines
667 B
TypeScript
import { Tables } from "@/supabase/types"
|
|
import { ChatMessage, LLMID } from "."
|
|
|
|
export interface ChatSettings {
|
|
model: LLMID
|
|
prompt: string
|
|
temperature: number
|
|
contextLength: number
|
|
includeProfileContext: boolean
|
|
includeWorkspaceInstructions: boolean
|
|
embeddingsProvider: "openai" | "local" | "bge-m3"
|
|
}
|
|
|
|
export interface ChatPayload {
|
|
chatSettings: ChatSettings
|
|
workspaceInstructions: string
|
|
chatMessages: ChatMessage[]
|
|
assistant: Tables<"assistants"> | null
|
|
messageFileItems: Tables<"file_items">[]
|
|
chatFileItems: Tables<"file_items">[]
|
|
}
|
|
|
|
export interface ChatAPIPayload {
|
|
chatSettings: ChatSettings
|
|
messages: Tables<"messages">[]
|
|
}
|