Skip to content

Audio transcription response is typed too generically #123

@saxon134

Description

@saxon134

AudioResource.transcription() returns APIResponse for /v1/audio/transcriptions, but the mocked API response contains a top-level text field and the repository's own test accesses .text. Because APIResponse does not declare that attribute, python -m mypy src tests fails with: tests/test_client.py:165: error: "APIResponse" has no attribute "text". Add a dedicated transcription response model with text or change the typed surface so this endpoint exposes the documented field.

File: src/globalrouter/_resources.py

Line: 536

Severity: medium

Summary: generic response type for audio transcription

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