You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ValidationError: EntityType enum missing location_state - API returns unsupported entity type #154
The AssemblyAI API is returning a new entity type location_state that is not included in the SDK's EntityType enum, causing Pydantic validation to fail when parsing the TranscriptResponse.
SDK Version
assemblyai: 0.48.x (issue exists in all current versions including 0.48.3)
File "assemblyai/transcriber.py", line 89, in wait_for_completion
self.transcript = api.get_transcript(...)
File "assemblyai/api.py", line 67, in get_transcript
return types.TranscriptResponse.parse_obj(response.json())
Steps to Reproduce
Transcribe audio that contains location/state references
The API returns entities with entity_type: "location_state"
SDK fails to parse the response due to enum validation
Expected Behavior
The SDK should successfully parse API responses containing location_state entities.
Suggested Fix
Add location_state to the EntityType enum in assemblyai/types.py:
This is a production-breaking issue - any transcription that returns a location_state entity will fail entirely, preventing users from getting transcription results.
Activity
ccampbell-aai commentedon Sep 2, 2026
Hello, this issue was resolved via PR #162. You may upgrade to any version >
0.49. The latest is1.1.0