feat(server): allow multiple session attach to doc (#12933)

fix AI-236
This commit is contained in:
DarkSky
2025-06-26 10:15:31 +08:00
committed by GitHub
parent e32c9a814a
commit 06f27e8d6a
14 changed files with 1304 additions and 306 deletions
+4 -17
View File
@@ -237,12 +237,15 @@ type CopilotHistories {
"""An mark identifying which view to use to display the session"""
action: String
createdAt: DateTime!
docId: String
messages: [ChatMessage!]!
pinned: Boolean!
sessionId: String!
"""The number of tokens used in the session"""
tokens: Int!
updatedAt: DateTime!
workspaceId: String!
}
type CopilotInvalidContextDataType {
@@ -253,22 +256,6 @@ type CopilotMessageNotFoundDataType {
messageId: String!
}
enum CopilotModels {
DallE3
Gpt4Omni
Gpt4Omni0806
Gpt4OmniMini
Gpt4OmniMini0718
Gpt41
Gpt41Mini
Gpt41Nano
Gpt410414
GptImage
TextEmbedding3Large
TextEmbedding3Small
TextEmbeddingAda002
}
input CopilotPromptConfigInput {
frequencyPenalty: Float
presencePenalty: Float
@@ -408,7 +395,7 @@ input CreateCopilotPromptInput {
action: String
config: CopilotPromptConfigInput
messages: [CopilotPromptMessageInput!]!
model: CopilotModels!
model: String!
name: String!
}