PackageTrack

npm · #4234

@ai-sdk/google

4.0.54vercel/ai

Release timeline

636 releases since 2024
20252026

Releases

  1. 2.0.7230 Apr 2026
    Release notes

    Patch Changes

    Open source →
  2. 2.0.7129 Apr 2026
    Release notes

    Patch Changes

    Open source →
  3. 2.0.7017 Apr 2026
    Release notes

    Patch Changes

    Open source →
  4. 2.0.6916 Apr 2026
    Release notes

    Patch Changes

    • 7440d89: fix(openai-compatible): preserve unmapped usage fields in usage.raw

      usage.raw is specified as usage "in the shape that the provider returns", and the chat model already parsed the usage object loosely so that extra top-level fields survived. The nested prompt_tokens_details and completion_tokens_details objects were still strict, so anything a provider reported inside them was dropped — which is where providers put their most distinguishing detail. The existing "should preserve extra usage fields" fixture was itself losing audio_tokens, image_tokens and text_tokens this way.

      Both nested objects are now parsed loosely, as is the completion model's usage schema, which was strict throughout despite feeding the same raw field.

      Only usage.raw changes. The mapped token counts are unaffected.

    Open source →
  5. 2.0.6813 Apr 2026
    Release notes

    Patch Changes

    Open source →
  6. 2.0.673 Apr 2026

    Nothing published for this version

  7. 2.0.663 Apr 2026

    Nothing published for this version

  8. 2.0.652 Apr 2026

    Nothing published for this version

  9. 2.0.6430 Mar 2026

    Nothing published for this version

  10. 2.0.6323 Mar 2026

    Nothing published for this version

  11. 2.0.6210 Mar 2026

    Nothing published for this version

  12. 2.0.6110 Mar 2026

    Nothing published for this version

  13. 2.0.605 Mar 2026

    Nothing published for this version

  14. 2.0.595 Mar 2026

    Nothing published for this version

  15. 2.0.585 Mar 2026

    Nothing published for this version

  16. 2.0.575 Mar 2026

    Nothing published for this version

  17. 2.0.5626 Feb 2026
    Release notes

    Patch Changes

    Open source →
  18. 2.0.5526 Feb 2026

    Nothing published for this version

  19. 2.0.5419 Feb 2026

    Nothing published for this version

  20. 2.0.5312 Feb 2026
    Release notes2 sources agree

    Patch Changes

    Open source →
  21. 2.0.5230 Dec 2025
    Release notes8 sources agree

    Patch Changes

    Open source →
  22. 2.0.5119 Dec 2025

    Nothing published for this version

  23. 2.0.5019 Dec 2025

    Nothing published for this version

  24. 2.0.4917 Dec 2025

    Nothing published for this version

  25. 2.0.4817 Dec 2025

    Nothing published for this version

  26. 2.0.4716 Dec 2025
    Release notes

    Patch Changes

    • c01944c: feat(provider/moonshotai): normalize tool schemas for Moonshot's MFJS validator. Tuple items arrays become prefixItems, type next to anyOf moves into the branches, and non-object root schemas fail with a clear client-side error instead of Moonshot's opaque 400. Everything else passes through unchanged; the original schema is still used for AI SDK result validation.
    Open source →
    Additional notes

    Patch Changes

    Open source →
  27. 2.0.4611 Dec 2025
    Release notes

    Patch Changes

    Open source →
  28. 2.0.458 Dec 2025
    Release notes

    Patch Changes

    • 4d1b345: feat(provider/moonshotai): own the chat implementation, support video input. The provider no longer builds on @ai-sdk/openai-compatible; the converter, language model, and helpers are owned by the package. Video file parts (e.g. mediaType: 'video/mp4') are converted to Moonshot's video_url content parts for video-capable models (kimi-k3, kimi-k2.7-code, kimi-k2.6, kimi-k2.5). Audio and PDF file parts now throw client-side (the API rejects those part types). reasoningHistory: 'preserved' now maps to Moonshot's thinking.keep: 'all' request field (previously a no-op, the API ignores reasoning_history), gated per model with a warning on models without thinking.keep support. Adds promptCacheKey and safetyIdentifier provider options, widens reasoningEffort to 'low' | 'high' | 'max' per Moonshot's docs, maps the generic reasoning call option to reasoning_effort, and passes ms:// Files API references through natively (declared in supportedUrls).
    Open source →
  29. 2.0.4427 Nov 2025

    Nothing published for this version

  30. 2.0.4324 Nov 2025

    Nothing published for this version

  31. 2.0.4222 Nov 2025

    Nothing published for this version

  32. 2.0.4122 Nov 2025

    Nothing published for this version

  33. 2.0.4020 Nov 2025

    Nothing published for this version

  34. 2.0.3919 Nov 2025

    Nothing published for this version

  35. 2.0.3819 Nov 2025

    Nothing published for this version

  36. 2.0.3719 Nov 2025

    Nothing published for this version

  37. 2.0.3618 Nov 2025

    Nothing published for this version

  38. 2.0.3518 Nov 2025

    Nothing published for this version

  39. 2.0.3417 Nov 2025

    Nothing published for this version

  40. 2.0.3316 Nov 2025
    Release notes

    Patch Changes

    • 1f29230: feat(mcp): harden oauth client registration according to latest protocol
    • 0c60a40: feat(mcp): add mcp 2026 streamable HTTP support
    • e6a9927: feat(mcp): add the latest 2026 protocol discovery foundation
    Open source →
  41. 2.0.3215 Nov 2025
    Release notes

    Patch Changes

    • 1011e33: Select MCP OAuth authorization scopes from WWW-Authenticate challenges or Protected Resource Metadata.
    Open source →
  42. 2.0.3110 Nov 2025
    Release notes

    Patch Changes

    Open source →
    Additional notes

    Patch Changes

    Open source →
  43. 2.0.3010 Nov 2025

    Nothing published for this version

  44. 2.0.297 Nov 2025

    Nothing published for this version

  45. 2.0.284 Nov 2025
    Release notes

    Patch Changes

    • 3b9f025: Add a provider-native reasoningEffort option for Open Responses endpoints.
    • 1c1a9d1: Preserve Open Responses output item order, text annotations, reasoning state, and reasoning part boundaries when replaying manually managed history.
    • 6fe187f: fix(open-responses): close unfinished reasoning stream parts with their original IDs
    • 1d0bdaa: Warn when provider-defined tools are unsupported instead of silently dropping them.
    Open source →
  46. 2.0.273 Nov 2025

    Nothing published for this version

  47. 2.0.2631 Oct 2025

    Nothing published for this version

  48. 2.0.2529 Oct 2025

    Nothing published for this version

  49. 2.0.2427 Oct 2025

    Nothing published for this version

  50. 2.0.2313 Oct 2025

    Nothing published for this version

  51. 2.0.2213 Oct 2025

    Nothing published for this version

  52. 2.0.2113 Oct 2025

    Nothing published for this version

  53. 2.0.2010 Oct 2025

    Nothing published for this version

  54. 2.0.1910 Oct 2025

    Nothing published for this version

  55. 2.0.189 Oct 2025

    Nothing published for this version

  56. 2.0.1726 Sept 2025

    Nothing published for this version

  57. 2.0.1623 Sept 2025

    Nothing published for this version

  58. 2.0.1522 Sept 2025

    Nothing published for this version

  59. 2.0.1412 Sept 2025
    Release notes

    Patch Changes

    Open source →
  60. 2.0.138 Sept 2025
    Release notes

    Patch Changes

    • 5a3ef3a: Fixed handling of image response in the tool call result.
    Open source →