mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 18:36:23 +02:00
Make Vision LLM opt-in for uploads and connectors
This commit is contained in:
parent
0aefcbd504
commit
a95bf58c8f
24 changed files with 276 additions and 20 deletions
|
|
@ -44,6 +44,7 @@ export const searchSourceConnector = z.object({
|
|||
last_indexed_at: z.string().nullable(),
|
||||
config: z.record(z.string(), z.any()),
|
||||
enable_summary: z.boolean().default(false),
|
||||
enable_vision_llm: z.boolean().default(false),
|
||||
periodic_indexing_enabled: z.boolean(),
|
||||
indexing_frequency_minutes: z.number().nullable(),
|
||||
next_scheduled_at: z.string().nullable(),
|
||||
|
|
@ -98,6 +99,7 @@ export const createConnectorRequest = z.object({
|
|||
last_indexed_at: true,
|
||||
config: true,
|
||||
enable_summary: true,
|
||||
enable_vision_llm: true,
|
||||
periodic_indexing_enabled: true,
|
||||
indexing_frequency_minutes: true,
|
||||
next_scheduled_at: true,
|
||||
|
|
@ -123,6 +125,7 @@ export const updateConnectorRequest = z.object({
|
|||
last_indexed_at: true,
|
||||
config: true,
|
||||
enable_summary: true,
|
||||
enable_vision_llm: true,
|
||||
periodic_indexing_enabled: true,
|
||||
indexing_frequency_minutes: true,
|
||||
next_scheduled_at: true,
|
||||
|
|
|
|||
|
|
@ -148,6 +148,7 @@ export const uploadDocumentRequest = z.object({
|
|||
files: z.array(z.instanceof(File)),
|
||||
search_space_id: z.number(),
|
||||
should_summarize: z.boolean().default(false),
|
||||
use_vision_llm: z.boolean().default(false),
|
||||
});
|
||||
|
||||
export const uploadDocumentResponse = z.object({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue