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

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.

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