Skip to content

Transcription response is typed too generically #76

@saxon134

Description

@saxon134

AudioResource.transcription() returns APIResponse even though /v1/audio/transcriptions returns a top-level text field. The repository's strict mypy configuration fails on tests/test_client.py:165 with "APIResponse has no attribute text". Add a transcription response model with a text field and use it for both sync and async transcription methods, or otherwise expose text in the declared return type.

File: src/globalrouter/_resources.py

Line: 540

Severity: high

Summary: missing typed transcription response in audioresource

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