MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / platform_headers

Function platform_headers

src/opencode_ai/_base_client.py:1923–1931  ·  view source on GitHub ↗
(version: str, *, platform: Platform | None)

Source from the content-addressed store, hash-verified

1921
1922@lru_cache(maxsize=None)
1923def platform_headers(version: str, *, platform: Platform | None) -> Dict[str, str]:
1924 return {
1925 "X-Stainless-Lang": "python",
1926 "X-Stainless-Package-Version": version,
1927 "X-Stainless-OS": str(platform or get_platform()),
1928 "X-Stainless-Arch": str(get_architecture()),
1929 "X-Stainless-Runtime": get_python_runtime(),
1930 "X-Stainless-Runtime-Version": get_python_version(),
1931 }
1932
1933
1934class OtherArch:

Callers 1

platform_headersMethod · 0.85

Calls 4

get_platformFunction · 0.85
get_architectureFunction · 0.85
get_python_runtimeFunction · 0.85
get_python_versionFunction · 0.85

Tested by

no test coverage detected