mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 03:26:47 +08:00
fix(core): fix error when server not support ai (#6796)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
query getCopilotQuota {
|
||||
query copilotQuota {
|
||||
currentUser {
|
||||
copilot {
|
||||
quota {
|
||||
@@ -94,6 +94,24 @@ mutation changePassword($token: String!, $newPassword: String!) {
|
||||
}`,
|
||||
};
|
||||
|
||||
export const copilotQuotaQuery = {
|
||||
id: 'copilotQuotaQuery' as const,
|
||||
operationName: 'copilotQuota',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query copilotQuota {
|
||||
currentUser {
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const createCheckoutSessionMutation = {
|
||||
id: 'createCheckoutSessionMutation' as const,
|
||||
operationName: 'createCheckoutSession',
|
||||
@@ -238,24 +256,6 @@ query getCopilotHistories($workspaceId: String!, $docId: String, $options: Query
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotQuotaQuery = {
|
||||
id: 'getCopilotQuotaQuery' as const,
|
||||
operationName: 'getCopilotQuota',
|
||||
definitionName: 'currentUser',
|
||||
containsFile: false,
|
||||
query: `
|
||||
query getCopilotQuota {
|
||||
currentUser {
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,
|
||||
};
|
||||
|
||||
export const getCopilotSessionsQuery = {
|
||||
id: 'getCopilotSessionsQuery' as const,
|
||||
operationName: 'getCopilotSessions',
|
||||
@@ -607,12 +607,6 @@ export const quotaQuery = {
|
||||
query quota {
|
||||
currentUser {
|
||||
id
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
quota {
|
||||
name
|
||||
blobLimit
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
query quota {
|
||||
currentUser {
|
||||
id
|
||||
copilot {
|
||||
quota {
|
||||
limit
|
||||
used
|
||||
}
|
||||
}
|
||||
quota {
|
||||
name
|
||||
blobLimit
|
||||
|
||||
Reference in New Issue
Block a user