ReleasexAIxAIpublished Nov 7, 2025seen Jun 26

xai-org/xai-sdk-python v1.4.0

xai-org/xai-sdk-python

Open original ↗

Captured source

source ↗
published Nov 7, 2025seen Jun 26captured Sep 5http 200method plain

v1.4.0

Repository: xai-org/xai-sdk-python

Tag: v1.4.0

Published: 2025-11-07T23:55:23Z

Prerelease: no

Release notes:

What's Changed

  • Add xai-sdk-version to the request metadata by @mark-xai in https://github.com/xai-org/xai-sdk-python/pull/41
  • Remove double await in async interceptor by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/42
  • Add context manager support and proper channel cleanup to clients by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/43
  • Add ability to exclude sensitive attributes for traces by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/44
  • Rename internal ChoiceChunk class to CompletionOutputChunk by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/45
  • Add support for encrypted content in chat responses by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/47
  • Add debug output support in chat responses by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/48
  • Optimize streaming chat response memory usage with lazy buffering by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/46
  • Add option to use an insecure gRPC channel in clients by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/49
  • Support ToolCallType in ToolCall by @mark-xai in https://github.com/xai-org/xai-sdk-python/pull/50
  • Add util function for retrieving tool-call-type by @mark-xai in https://github.com/xai-org/xai-sdk-python/pull/51
  • Add remote MCP tool by @gyang-xai in https://github.com/xai-org/xai-sdk-python/pull/52
  • Add SERVER_SIDE_TOOL_MCP and SERVER_SIDE_TOOL_COLLECTIONS_SEARCH to usage enum by @gyang-xai in https://github.com/xai-org/xai-sdk-python/pull/53
  • Add proto changes and util function for collections-search by @mark-xai in https://github.com/xai-org/xai-sdk-python/pull/54
  • Set index correctly in parse method by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/55
  • Append all output entries for agentic response by @mark-xai in https://github.com/xai-org/xai-sdk-python/pull/56
  • Allow passing a Pydantic BaseModel to response_format directly in chat.create by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/57
  • Implement Files API client SDK support by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/58
  • Add new server-side tools examples by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/59
  • Auto-detect server-side implicit tool additions in chat by @shawnthapa in https://github.com/xai-org/xai-sdk-python/pull/60
  • Bump version from v1.3.1 -> v1.4.0 by @Omar-V2 in https://github.com/xai-org/xai-sdk-python/pull/61

New Contributors

  • @shawnthapa made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/43
  • @gyang-xai made their first contribution in https://github.com/xai-org/xai-sdk-python/pull/52

Full Changelog: https://github.com/xai-org/xai-sdk-python/compare/v1.3.1...v1.4.0