Repository navigation
Conversation
…tionResponse The AssemblyAI Dictation API returns auth_time_ms as the authentication and token/API-key validation portion of request_time_ms. While request_time_ms and sync_time_ms were already exposed, auth_time_ms was not declared on DictationResponse and was silently dropped. Add auth_time_ms: Optional[float] = None to DictationResponse in assemblyai/dictation/v1/models.py. - Add unit test asserting result.auth_time_ms == 24.6 in sync and async dictation tests. - Add test for responses that predate the field (auth_time_ms is None). - Update DictationResponse summary in CLAUDE.md. - Bump version to 1.6.2 for version bump check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exposes the
auth_time_mslatency breakdown field inDictationResponse.The AssemblyAI Dictation API returns
auth_time_msrepresenting the authentication and token/API-key validation duration in milliseconds as a component ofrequest_time_ms(alongsidesync_time_ms). Whilerequest_time_msandsync_time_mswere already exposed onDictationResponse,auth_time_mswas not declared and was silently dropped during parsing.Changes
assemblyai/dictation/v1/models.py: Addauth_time_ms: Optional[float] = NonetoDictationResponse.assemblyai/__version__.py: Bump version to1.6.2for version bump check.CLAUDE.md: UpdateDictationResponseproperty documentation to include.auth_time_ms.tests/unit/test_dictation.py: Addauth_time_msto_OK_RESPONSE, verify field assertion, and add backwards-compatibility test for server responses omittingauth_time_ms.tests/unit/test_dictation_async.py: Mirrorauth_time_msassertions and fallback test for the async transcriber.Verification
pytest tests/unit/test_dictation.py tests/unit/test_dictation_async.pypasses (107 passed).ruff check assemblyai --config ./ruff.tomlandruff format --check --config ./ruff.toml assemblyaipass cleanly.