-
feat(antigravity): enable token counting via API with resilient routing
released this
2025-12-17 19:12:46 +00:00 | 1071 commits to main since this releaseIntroduces the capability to count tokens for Antigravity-backed requests. This implementation leverages the
countTokensendpoint of the Antigravity API, replacing the prior unsupported stub.Key aspects of this update include:
- API Integration: Direct integration with the Antigravity
countTokensAPI, including necessary request payload translation and authentication. - Resilient Infrastructure: A fallback mechanism has been established, allowing the system to attempt connections across multiple Antigravity base URLs to ensure request success even in the event of temporary service interruptions.
- Model Aliasing: Added mappings for
gemini-3-flashandgemini-3-flash-previewto ensure compatibility with the latest model variants. - Robust Error Handling: Comprehensive error handling and logging are in place to manage failures during API interactions.
Downloads
- API Integration: Direct integration with the Antigravity