| 1 | package Langertha::Engine::TranscriptionBase; | ||
| 2 | # ABSTRACT: Base class for OpenAI-compatible transcription-only engines | ||
| 3 | 111 | our $VERSION = '0.505'; | |
| 4 | 111 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 111 | ▶ | use Carp qw( croak ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 111 | ▶ | use Module::Runtime qw( use_module ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 111 | extends 'Langertha::Engine::Remote'; | |
| 9 | |||
| 10 | 111 | with map { 'Langertha::Role::'.$_ } qw( | |
| 11 | OpenAICompatible | ||
| 12 | OpenAPI | ||
| 13 | Models | ||
| 14 | Transcription | ||
| 15 | Capabilities | ||
| 16 | ); | ||
| 17 | |||
| 18 | 9 | ▶ | sub _build_openapi_operations { |
|
Subroutine
_build_openapi_operations: called CC=1 SCAR=1.2
| |||
| 19 | 0 | ▶ | return use_module('Langertha::Spec::OpenAI')->data; |
|
Subroutine
_build_openapi_operations: not called CC=1 SCAR=1.2
| |||
| 20 | } | ||
| 21 | |||
| 22 | 11 | ▶ | sub _build_supported_operations {[qw( |
|
Subroutine
_build_supported_operations: called CC=1 SCAR=0.0
| |||
| 23 | createTranscription | ||
| 24 | )]} | ||
| 25 | |||
| 26 | |||
| 27 | 0 | ▶ | sub default_model { croak "".(ref $_[0])." requires transcription_model to be set" } |
|
Subroutine
default_model: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 28 | |||
| 29 | 111 | __PACKAGE__->meta->make_immutable; | |
| 30 | |||
| 31 | |||
| 32 | 111 | 1; | |
| 33 | |||
| 34 | __END__ | ||