learning_ai_common_plat/services
saravanakumardb1 031e910607 fix(extraction-service): review fixes — locale mapping, model passthrough, content-type validation
BUG 1: Azure locale derivation produced 'en-EN' (invalid) for 2-letter codes.
  → Added toAzureLocale() with 28-language mapping table (en→en-US, pt→pt-BR, etc.)
  → Exported for testing; falls back to code-CODE for unmapped languages.

BUG 2: model field from request schema was silently dropped after provider refactor.
  → Added optional model field to TranscriptionInput interface.
  → OpenAI provider now uses input.model override (falls back to config.model).
  → Route passes model through to provider.transcribe().

GAP 4: SUPPORTED_AUDIO_TYPES was defined but never validated against.
  → Route now rejects unsupported content-types with a clear error message.
  → Allows application/octet-stream (Azure Blob SAS URLs often return this).

GAP 5: Client JSDoc still said 'via OpenAI Whisper API' — now 'via configured STT provider'.

GAP 8: Azure WAV content-type hardcoded samplerate=16000 — now generic audio/wav.

Tests: 42 transcription tests (was 35), 178 total passing.
  → toAzureLocale: 4 tests (locale mapping, passthrough, fallback, case-insensitive)
  → setSTT: 1 test (singleton override)
  → model passthrough: 2 tests (mock ignores, input accepts)
2026-04-06 11:40:27 -07:00
..
cowork-service feat(runtime): add Cowork checkpoint drill-in 2026-04-04 17:29:12 -07:00
extraction-service fix(extraction-service): review fixes — locale mapping, model passthrough, content-type validation 2026-04-06 11:40:27 -07:00
mcp-server fix(mcp): align ChronoMind type enums with actual backend schema 2026-03-31 23:57:24 -07:00
monitoring feat(observability): add phase 2 monitoring and valkey services 2026-03-31 06:57:12 +00:00
platform-service feat(jobs): register devintelli-daily-sync cron job (0 6 * * *) 2026-04-04 23:37:25 -07:00