xAI: xai-sdk-python v1.15.0 adds the grok-build-0.1 model and context compaction
xAI has released xai-sdk-python v1.15.0, a release with three changes: adding the grok-build-0.1 model to the ChatModel class, support for context compaction, and bumping the version from 1.14.0 to 1.15.0. All changes arrived through three separate pull requests.
This article was generated using artificial intelligence from primary sources.
xAI has released a new version of its official Python SDK for working with the Grok models, tagged v1.15.0. The release brings three concrete changes, all delivered through separate pull requests.
What are the three changes in v1.15.0?
The release contains three items. The first is the addition of the new grok-build-0.1 model to the ChatModel class (PR #155). The second is support for context compaction (PR #156). The third is bumping the package version from 1.14.0 to 1.15.0 (PR #157). All three changes are attributed to the same contributor, user @shawnthapa.
What does the grok-build-0.1 model bring?
The new grok-build-0.1 entry becomes available through the ChatModel class, which is the SDK’s standard interface for conversational calls to Grok models. By adding the model identifier to that class, developers can target the new variant directly from code without any manual workaround.
What is context compaction?
Context compaction is a technique that reduces the size of the conversation history before it is sent to the model. Every model’s context window has a limited number of tokens, so long sessions can exceed that limit. Compaction compresses or shortens earlier exchanges, preserving the gist of the conversation while consuming fewer tokens. Support for that functionality was added in v1.15.0.
Conclusion
xai-sdk-python v1.15.0 is an incremental release that expands the model selection and improves context management. For developers building applications on the Grok models, the two most interesting items are the functional additions: access to the grok-build-0.1 model and built-in support for context compaction.
Frequently Asked Questions
- Which new model was added in xai-sdk-python v1.15.0?
- The grok-build-0.1 model was added to the ChatModel class, through pull request #155.
- What is context compaction?
- Context compaction is a technique that reduces the size of the conversation history to save space in the model's context window. It was added through PR #156.
Related news
arXiv:2606.20517: Multi-LCB Extends LiveCodeBench to 12 Programming Languages and Reveals Python Overfitting in 24 Models
UK AISI: Engineering Playbook Opens Frontier Model Evaluation Infrastructure in Five Layers
Black Forest Labs: Robin Rombach Calls on G7 Leaders to Support Open AI Development