| 1 | import { Injectable, Logger } from '@nestjs/common' |
| 2 | import { AppConfigRepository } from '@yikart/mongodb' |
| 3 | import { config } from '../../../config' |
| 4 | import { ModelsConfigDto } from './models-config.dto' |
| 5 | |
| 6 | @Injectable() |
| 7 | export class ModelsConfigService { |
| 8 | private readonly logger = new Logger(ModelsConfigService.name) |
| 9 | private modelsConfig = config.ai.models |
| 10 | |
| 11 | constructor( |
| 12 | private readonly appConfigRepo: AppConfigRepository, |
| 13 | ) {} |
| 14 | |
| 15 | async saveConfig(_: ModelsConfigDto) { |
| 16 | } |
| 17 | |
| 18 | get config() { |
| 19 | return this.modelsConfig |
| 20 | } |
| 21 | } |
| 22 |