AudioResource.transcription and transcription_async validate /v1/audio/transcriptions as APIResponse, whose declared fields are only id/object/data/status. The test suite accesses .text on this result, and the repository's strict mypy configuration fails with: tests/test_client.py:165: "APIResponse" has no attribute "text". Add a transcription response model with a text field and return it from both transcription methods.
File: src/globalrouter/_resources.py
Line: 540
Severity: high
Summary: wrong audio transcription response type
AudioResource.transcription and transcription_async validate /v1/audio/transcriptions as APIResponse, whose declared fields are only id/object/data/status. The test suite accesses .text on this result, and the repository's strict mypy configuration fails with: tests/test_client.py:165: "APIResponse" has no attribute "text". Add a transcription response model with a text field and return it from both transcription methods.
File:
src/globalrouter/_resources.pyLine: 540
Severity: high
Summary: wrong audio transcription response type