AudioResource.transcription validates /v1/audio/transcriptions into APIResponse, whose declared fields do not include the endpoint's top-level text field. The repository's own test accesses .text, and mypy src tests fails with "APIResponse" has no attribute "text". Add a transcription response model with text: str and return it from both sync and async transcription methods.
File: src/globalrouter/_resources.py
Line: 540
Severity: medium
Summary: wrong return type for audio transcription
AudioResource.transcriptionvalidates/v1/audio/transcriptionsintoAPIResponse, whose declared fields do not include the endpoint's top-leveltextfield. The repository's own test accesses.text, andmypy src testsfails with"APIResponse" has no attribute "text". Add a transcription response model withtext: strand return it from both sync and async transcription methods.File:
src/globalrouter/_resources.pyLine: 540
Severity: medium
Summary: wrong return type for audio transcription