Skip to content

Add typed system prompt language hints to transcription requests - #246

Draft
reloff-aai wants to merge 3 commits into
masterfrom
reloff/language-hints
Draft

reloff-aai wants to merge 3 commits into
masterfrom
reloff/language-hints

Conversation

@reloff-aai

@reloff-aai reloff-aai commented Sep 10, 2026 •

Copy link
Copy Markdown

Add an optional language_hints object to transcription configuration and request/response types. It carries a default language and an optional ordered language list independently of the user prompt and language routing; omission leaves the request unchanged. The field survives config copies, raw-config reconstruction and the HTTP request model.

Validation: Focused language-hint/transcriber suites pass with both Pydantic 1 and Pydantic 2. Tests inspect actual mocked HTTP request bodies, omission, ordering, invalid values and independent config copies. Zero-distractor requests may list only true targets even when the default is outside that list.

A compatibility backport based on 0.64.32 is available on reloff/language-hints-064 for consumers retaining the earlier SDK module layout. Server support must deploy before callers enable this option.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant