blib/lib/Langertha/Engine/TranscriptionBase.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 5 / 7 Podpod 0.0% 0 / 1 totaltotal 81.4% 22 / 27 CC 1 SCAR 1.6
CC
1
Cov
89%
default_model
2.0
_build_openapi_operations
1.1
_build_openapi_operations
1.1
CRAP 1.2
« blib/lib/Langertha/Engine/Scaleway.pm ↑ Summary blib/lib/Langertha/Engine/TSystems.pm »
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__
« blib/lib/Langertha/Engine/Scaleway.pm ↑ Summary blib/lib/Langertha/Engine/TSystems.pm »