Skip to content

chore: replace X-Stainless-* request headers with X-Lmnt-*#87

Merged
zachoverflow merged 2 commits into
masterfrom
auto/remove-stainless-bf0cb349b
May 19, 2026
Merged

chore: replace X-Stainless-* request headers with X-Lmnt-*#87
zachoverflow merged 2 commits into
masterfrom
auto/remove-stainless-bf0cb349b

Conversation

@zachoverflow
Copy link
Copy Markdown
Contributor

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 the X-Lmnt-* namespace so the wire format reflects the SDK's actual provenance.

Also includes:

  • Two CI workflow files (post-merge-cleanup.yml, prepare-release.yml) that powered an unused next-branch release-staging mechanism are removed. release-please now handles the release flow end-to-end.
  • The stainless-sdks/lmnt-com-python Depot conditional in ci.yml is dropped; lint/build/test jobs all run on ubuntu-latest.
  • api.md is refreshed to include the speech.sessions resource that already exists in the client surface.

Changed surface

  • Request headers: X-Stainless-{Lang,Package-Version,OS,Arch,Runtime,Runtime-Version,Async} and x-stainless-{retry-count,read-timeout} -> X-Lmnt-* / x-lmnt-*.
  • Idempotency retry id prefix: stainless-python-retry-<uuid> -> lmnt-python-retry-<uuid>.
  • Internal constants: RAW_RESPONSE_HEADER value -> X-Lmnt-Raw-Response; OVERRIDE_CAST_TO_HEADER value -> ____lmnt_override_cast_to.
  • Removed workflows: .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 to x-lmnt-retry-count (and similarly for x-lmnt-read-timeout).

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.
@zachoverflow zachoverflow merged commit 7062321 into master May 19, 2026
11 checks passed
@zachoverflow zachoverflow deleted the auto/remove-stainless-bf0cb349b branch May 19, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant