Skip to content

Passing keywords parameter fails to url encode #1

@jhorman

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.

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