Skip to content

Commit

Permalink
feat: Add ModelProvider to ProjectBuilderService
Browse files Browse the repository at this point in the history
This commit adds the `ModelProvider` to the `ProjectBuilderService` in the `ProjectBuilderService` file. The `ModelProvider` is used to retrieve an instance of the `ModelProvider` class. This change allows the `ProjectBuilderService` to access the necessary models for creating a new project.
  • Loading branch information
Sma1lboy committed Nov 8, 2024
1 parent df5fbe3 commit 7eceda6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/src/build-system/project-builder.service.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Injectable, Logger } from '@nestjs/common';
import { ChatProxyService } from 'src/chat/chat.service';
import { ModelProvider } from 'src/common/model-provider';

@Injectable()
export class ProjectBuilderService {
private readonly logger = new Logger(ProjectBuilderService.name);

private models: ModelProvider = ModelProvider.getInstance();
constructor(private chatProxyService: ChatProxyService) {}

async createProject(input: {
Expand Down

0 comments on commit 7eceda6

Please sign in to comment.