chore: replace X-Stainless-* request headers with X-Lmnt-*#87
Merged
Conversation
These workflows powered a `next` branch release-staging mechanism that is no longer in use. release-please handles the release flow end-to-end.
Renames telemetry and SDK-internal request headers (Lang, OS, Arch, Package-Version, Runtime, Runtime-Version, Async, retry-count, read-timeout) from the X-Stainless-* namespace to X-Lmnt-*. Also renames the internal RAW_RESPONSE_HEADER and OVERRIDE_CAST_TO_HEADER constants and the idempotency retry-id prefix. Drops the stainless-sdks Depot conditionals in CI so all jobs run on ubuntu-latest, and refreshes api.md to include the speech.sessions resource.
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
The SDK previously emitted
X-Stainless-*telemetry and control headers (Lang,OS,Arch,Package-Version,Runtime,Runtime-Version,Async,retry-count,read-timeout) on every outbound request. This renames them to theX-Lmnt-*namespace so the wire format reflects the SDK's actual provenance.Also includes:
post-merge-cleanup.yml,prepare-release.yml) that powered an unusednext-branch release-staging mechanism are removed. release-please now handles the release flow end-to-end.stainless-sdks/lmnt-com-pythonDepot conditional inci.ymlis dropped; lint/build/test jobs all run onubuntu-latest.api.mdis refreshed to include thespeech.sessionsresource that already exists in the client surface.Changed surface
X-Stainless-{Lang,Package-Version,OS,Arch,Runtime,Runtime-Version,Async}andx-stainless-{retry-count,read-timeout}->X-Lmnt-*/x-lmnt-*.stainless-python-retry-<uuid>->lmnt-python-retry-<uuid>.RAW_RESPONSE_HEADERvalue ->X-Lmnt-Raw-Response;OVERRIDE_CAST_TO_HEADERvalue ->____lmnt_override_cast_to..github/workflows/post-merge-cleanup.yml,.github/workflows/prepare-release.yml.Compatibility notes
The renamed headers were telemetry/internal control headers, not part of the documented public surface; the server does not consume them. Callers who previously passed
extra_headers={'x-stainless-retry-count': ...}to override SDK retry-count emission need to switch tox-lmnt-retry-count(and similarly forx-lmnt-read-timeout).