mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-28 02:23:53 +02:00
add update chat mutation atom
This commit is contained in:
parent
684589fc19
commit
373bd668f7
2 changed files with 23 additions and 22 deletions
|
|
@ -34,17 +34,10 @@ export const deleteChatResponse = z.object({
|
|||
|
||||
export const deleteChatRequest = chatSummary.pick({ id: true });
|
||||
|
||||
export const createChatRequest = z.object({
|
||||
type: chatTypeEnum,
|
||||
title: z.string(),
|
||||
initial_connectors: z.array(z.string()),
|
||||
messages: z.array(
|
||||
z.object({
|
||||
role: z.enum(["user", "assistant"]),
|
||||
content: z.string(),
|
||||
})
|
||||
),
|
||||
search_space_id: z.number(),
|
||||
export const createChatRequest = chatDetails.omit({
|
||||
created_at: true,
|
||||
id: true,
|
||||
state_version: true,
|
||||
});
|
||||
|
||||
export const updateChatRequest = chatDetails.omit({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue