Repository navigation
feat(llm_gateway): Add LLM Gateway Module - #243
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Move the logic duplicated between client.py and async_client.py into a new _base.py, matching sync/v1, prerecorded/v2 and streaming/v3: the resource base holding the gateway and its base_url/timeout pair, the three request body builders, and the tool-calling loop's core. Trim the exported names from 29 to 18, keeping the clients, the message param, the stream types, the response envelopes and the layer below them a caller annotates; the nested leaf models stay reachable through assemblyai.llm_gateway.v1.models. Reduce llm_gateway/__init__.py to a docstring, matching the empty streaming and prerecorded package inits, and drop the vestigial LLMGatewayMessageParamUnion alias. Remove a committed pprint of every understanding response, and reformat the one line in api.py that failed ruff format --check. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
dmorrissey-aai
marked this pull request as ready for review
September 9, 2026 20:09
…dule Master added the Dictation API and the sync live upload; this branch adds the LLM Gateway module. The four conflicts were all additions landing next to each other, resolved as unions: - __init__.py: keep both the .dictation.v1 and .llm_gateway.v1 import blocks, and both __all__ entries. - types.py: keep all five new Settings fields (sync_live_http_timeout, dictation_*, llm_gateway_*). - MIGRATION.md: keep the branch's LeMUR -> LLMGateway rewrite, with master's assembly.ai/wildfires.mp3 URL sweep re-applied to it. - __version__.py: 1.6.0, a minor bump past master's 1.5.4 for the new public LLMGateway surface. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jhazenaai
reviewed
Sep 16, 2026
Addresses PR review feedback to stop showing the deprecated known_values field in speaker identification examples.
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.
Add LLM Gateway Module to SDK