Skip to content

Commit

Permalink
fix: recover distinctive name
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Apr 10, 2024
1 parent 7e8f20a commit 8a57699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/backend/server/src/plugins/copilot/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ServerFeature } from '../../core/config';
import { Plugin } from '../registry';
import { PromptService } from './prompt';
import { assertProvidersConfigs, ProviderService } from './providers';
import { assertProvidersConfigs, CopilotProviderService } from './providers';
import { ChatSessionService } from './session';

@Plugin({
name: 'copilot',
providers: [ChatSessionService, PromptService, ProviderService],
providers: [ChatSessionService, PromptService, CopilotProviderService],
contributesTo: ServerFeature.Copilot,
if: config => {
if (config.flavor.graphql) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ export function assertProvidersConfigs(config: Config) {
}

@Injectable()
export class ProviderService {
private readonly logger = new Logger(ProviderService.name);
export class CopilotProviderService {
private readonly logger = new Logger(CopilotProviderService.name);
constructor(private readonly config: Config) {}

private readonly cachedProviders = new Map<
Expand Down

0 comments on commit 8a57699

Please sign in to comment.