Skip to content

Audio transcription response is typed as missing text #33

@saxon134

Description

@saxon134

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

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