发布

  • feat(antigravity): enable token counting via API with resilient routing

    frostbyte_neo 发布于 2025-12-17 19:12:46 +00:00

    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.
    下载附件