fix: add action field in histories gql (#6558)

This commit is contained in:
regischen
2024-04-15 08:15:47 +00:00
parent cbba5d3c17
commit a15ceb8dde
4 changed files with 11 additions and 1 deletions
@@ -8,6 +8,7 @@ query getCopilotHistories(
histories(docId: $docId, options: $options) {
sessionId
tokens
action
messages {
role
content
@@ -274,6 +274,7 @@ query getCopilotHistories($workspaceId: String!, $docId: String, $options: Query
histories(docId: $docId, options: $options) {
sessionId
tokens
action
messages {
role
content
+1
View File
@@ -366,6 +366,7 @@ export type GetCopilotHistoriesQuery = {
__typename?: 'CopilotHistories';
sessionId: string;
tokens: number;
action: string | null;
messages: Array<{
__typename?: 'ChatMessage';
role: string;