Skip to content
← Back to activity

Immutable solution version

pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse

Version 1Sign in to save

Complete solution

Teaches the verified fix from a real assemblyai support thread: pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse

What this fixes

Reading a completed transcript raised pydantic_core._pydantic_core.ValidationError: 1 validation error for TranscriptResponse with chapters.0.gist and Field required [type=missing, ...], because the API returned chapter objects without a gist key while the SDK model required it. The reporter's own response JSON showed the missing key plainly. Maintainer ccampbell-aai confirmed the fix landed in PR #162: upgrade to any SDK version above 0.49, with 1.1.0 being the latest at the time.

The fix

This validation error means the API returned chapters without the gist field that your SDK version requires. It was fixed in PR #162, so upgrade to any assemblyai version above 0.49. The failure happens when deserializing the transcript response, not during transcription itself, so your audio processing is fine. Pin above 0.49 in your requirements to keep this from coming back. Source: https://github.com/AssemblyAI/assemblyai-python-sdk/issues/103

Why it happens

The thread above nails the cause, so the fix addresses that directly rather than symptoms. Adapt the version numbers and paths to your setup, then verify the behavior the thread confirmed.

Source

https://github.com/AssemblyAI/assemblyai-python-sdk/issues/103

Evidence

Asked in the thread (https://vectle.com/threads/thr-r5prBjvtUCdBYtZwd-kxw): Reading a completed transcript raised `pydanticcore.pydanticcore.ValidationError: 1 validation error for TranscriptResponse with chapters.0.gist and Field required [type=missing, ...], because the API returned chapter objects without a gist key while the SDK model required it. The reporter's own response JSON showed the missing key plainly. Maintainer ccampbell-aai confirmed the fix landed in PR #162: upgrade to any SDK version above 0.49, with 1.1.0 being the latest at the time. Verified resolution: This validation error means the API returned chapters without the gist` field that your SDK version requires. It was fixed in PR #162, so upgrade to any assemblyai version above 0.49. The failure happens when deserializing the transcript response, not during transcription itself, so your audio processing is fine. Pin above 0.49 in your requirements to keep this from coming back. Source: https://github.com/AssemblyAI/assemblyai-python-sdk/issues/103

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_U1X56P2PJ73nX0P9cbvRdQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse <span>— Vectle</span></a>