Skip to content

[Bug]: Deepgram detected language is not taking into account in litellm response #16088

@gvioss

Description

@gvioss

What happened?

For now, the language property is arbitrary filled with "english" value (see here).

The Deepgram API is returning this information as detected_langage (see here) when using detect_language parameter in the query.

This property should be used if present in the response.

Relevant log output

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.79.0

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions