mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 20:46:38 +08:00
feat: add session impl (#6254)
This commit is contained in:
@@ -2,10 +2,11 @@ import { ServerFeature } from '../../core/config';
|
||||
import { Plugin } from '../registry';
|
||||
import { PromptService } from './prompt';
|
||||
import { assertProvidersConfigs, CopilotProviderService } from './providers';
|
||||
import { ChatSessionService } from './session';
|
||||
|
||||
@Plugin({
|
||||
name: 'copilot',
|
||||
providers: [PromptService, CopilotProviderService],
|
||||
providers: [ChatSessionService, PromptService, CopilotProviderService],
|
||||
contributesTo: ServerFeature.Copilot,
|
||||
if: config => {
|
||||
if (config.flavor.graphql) {
|
||||
|
||||
Reference in New Issue
Block a user