Skip to content

Audio transcription is typed as a generic API response #141

@saxon134

Description

@saxon134

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions