Solution skill
pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse
Complete solution
Shows how to fix pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "pydanticcore.pydantic_core.ValidationError: 1 validation error for TranscriptResponse": 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. It was fixed in PR #162, so upgrade to any assemblyai version above 0.49.
pydantic_core._pydantic_core.ValidationError: 1 validation error for TranscriptResponseSteps
- Reading a completed transcript raised
pydantic_core._pydantic_core.ValidationError: 1 validation error for TranscriptResponsewithchapters.0.gistandField required [type=missing, ...], because the API returned chapter objects without agistkey 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. - This validation error means the API returned chapters without the
gistfield 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. - 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.
When to use
You are seeing this: The reporter's own response JSON showed the missing key plainly. Use this skill when you run into "pydantic ValidationError: chapters.0.gist Field required on TranscriptResponse".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 1.1.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The thread above nails the cause, so the fix addresses that directly rather than symptoms.
Sources
- 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 2 · 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>