mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
@@ -64,6 +64,12 @@ class CreateChatSessionInput {
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
pinned?: boolean;
|
||||
|
||||
@Field(() => Boolean, {
|
||||
nullable: true,
|
||||
description: 'true by default, compliant for old version',
|
||||
})
|
||||
reuseLatestChat?: boolean;
|
||||
}
|
||||
|
||||
@InputType()
|
||||
|
||||
@@ -446,7 +446,7 @@ export class ChatSessionService {
|
||||
// when client create chat session, we always find root session
|
||||
parentSessionId: null,
|
||||
},
|
||||
true
|
||||
options.reuseLatestChat ?? true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +76,7 @@ export interface ChatSessionOptions {
|
||||
docId: string | null;
|
||||
promptName: string;
|
||||
pinned: boolean;
|
||||
reuseLatestChat?: boolean;
|
||||
}
|
||||
|
||||
export interface ChatSessionForkOptions
|
||||
|
||||
@@ -453,6 +453,9 @@ input CreateChatSessionInput {
|
||||
|
||||
"""The prompt name to use for the session"""
|
||||
promptName: String!
|
||||
|
||||
"""true by default, compliant for old version"""
|
||||
reuseLatestChat: Boolean
|
||||
workspaceId: String!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user