• feat(antigravity): enable token counting via API with resilient routing
    Some checks failed
    docker-image / docker (push) Has been cancelled
    goreleaser / goreleaser (push) Has been cancelled

    airkjw released this 2025-12-17 19:12:46 +00:00 | 1071 commits to main since this release

    Introduces the capability to count tokens for Antigravity-backed requests. This implementation leverages the countTokens endpoint of the Antigravity API, replacing the prior unsupported stub.

    Key aspects of this update include:

    • API Integration: Direct integration with the Antigravity countTokens API, 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-flash and gemini-3-flash-preview to 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