Skip to content

Passing keywords parameter fails to url encode #1

Description

@jhorman

What's happening that seems wrong?

Pass keywords parameter as a list of strings.

        response = await dg_client.transcription.prerecorded(
            source,
            {
                "punctuate": True,
                "diarize": True,
                "numerals": True,
                "utterances": True,
                "keywords": [
                    "10-Q",
                    "non-GAAP",
                    "GAAP",
                    "CRM",
ValueError: not enough values to unpack (expected 2, got 1)

The data looks like

[('keywords', '10-Q')]
[('keywords', 'non-GAAP')]

and it should look like

('keywords', '10-Q')
('keywords', 'non-GAAP')

So an extra array is ending up around each item.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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