mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-20 09:33:39 +02:00
17 lines
505 B
TypeScript
17 lines
505 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { WhisperService } from './whisper.service';
|
|
|
|
@Controller('whisper')
|
|
export class WhisperController {
|
|
constructor(private readonly whisperService: WhisperService) {}
|
|
|
|
@Get('models')
|
|
getModels() {
|
|
return {
|
|
models: this.whisperService.getAvailableModels(),
|
|
defaultProvider: this.whisperService.getDefaultProvider(),
|
|
defaultModel: this.whisperService.getDefaultModel(),
|
|
groqAvailable: this.whisperService.isGroqAvailable(),
|
|
};
|
|
}
|
|
}
|