packages/ai/README.md
Package detail
@ai-sdk/google
The Google Generative AI provider for the AI SDK contains language model support for the Google Generative AI
readme
changelog
@ai-sdk/google
1.2.19
Patch Changes
- f262012: fix (provider/google): prevent error when thinking signature is used
1.2.18
Patch Changes
- 4b2e1b0: Add reasoning token output support for gemini models via Vertex AI Provider
1.2.17
Patch Changes
- Updated dependencies [d87b9d1]
1.2.16
Patch Changes
- 0ca6f2f: feat(providers/google): add gemini-2.5-pro-preview-05-06
1.2.15
Patch Changes
- 2afd354: fix(providers/google): accept nullish in safetyRatings
1.2.14
Patch Changes
- c695a7e: feat (provider/google): add new gemini models
1.2.13
Patch Changes
- 6183b08: feat(providers/google): Add taskType support for Text Embedding Models
1.2.12
Patch Changes
- c56331d: feat (providers/google): add thinking config to provider options
1.2.11
Patch Changes
- Updated dependencies [beef951]
1.2.10
Patch Changes
- Updated dependencies [013faa8]
1.2.9
Patch Changes
- Updated dependencies [c21fa6d]
1.2.8
Patch Changes
- 1e8e66d: fix (provider/google): allow "OFF" for Google HarmBlockThreshold
1.2.7
Patch Changes
- 1789884: feat: add provider option schemas for vertex imagegen and google genai
1.2.6
Patch Changes
- Updated dependencies [2c19b9a]
1.2.5
Patch Changes
- Updated dependencies [28be004]
1.2.4
Patch Changes
- Updated dependencies [b01120e]
1.2.3
Patch Changes
- 871df87: feat (provider/google): add gemini-2.5-pro-exp-03-25 to model list
1.2.2
Patch Changes
- Updated dependencies [f10f0fa]
1.2.1
Patch Changes
- 994a13b: feat (provider/google): support IMAGE_SAFETY finish reason
1.2.0
Minor Changes
- 5bc638d: AI SDK 4.2
Patch Changes
- Updated dependencies [5bc638d]
1.1.27
Patch Changes
- d0c4659: feat (provider-utils): parseProviderOptions function
- Updated dependencies [d0c4659]
1.1.26
Patch Changes
- 0bd5bc6: feat (ai): support model-generated files
- Updated dependencies [0bd5bc6]
1.1.25
Patch Changes
- Updated dependencies [2e1101a]
1.1.24
Patch Changes
- 5261762: fix (provider/google): ensure correct finishReason for tool calls in streaming response
1.1.23
Patch Changes
- 413f5a7: feat (providers/google): add gemma 3 model id
1.1.22
Patch Changes
- 62f46fd: feat (provider/google): add support for dynamic retrieval
1.1.21
Patch Changes
- Updated dependencies [1531959]
1.1.20
Patch Changes
- e1d3d42: feat (ai): expose raw response body in generateText and generateObject
- Updated dependencies [e1d3d42]
1.1.19
Patch Changes
- 2c27583: fix (provider/google): support empty content in malformed function call responses
1.1.18
Patch Changes
- 5c8f512: feat (provider/google): add seed support
1.1.17
Patch Changes
- Updated dependencies [ddf9740]
1.1.16
Patch Changes
- 1b2e2a0: fix (provider/google): add resilience against undefined parts
1.1.15
Patch Changes
- Updated dependencies [2761f06]
1.1.14
Patch Changes
- 08a3641: fix (provider/google): support nullable enums in schema
1.1.13
Patch Changes
- Updated dependencies [2e898b4]
1.1.12
Patch Changes
- Updated dependencies [3ff4ef8]
1.1.11
Patch Changes
- 6eb7fc4: feat (ai/core): url source support
1.1.10
Patch Changes
- e5567f7: feat (provider/google): update model ids
1.1.9
Patch Changes
- b2573de: fix (provider/google): remove reasoning text following removal from Gemini API
1.1.8
Patch Changes
- Updated dependencies [d89c3b9]
1.1.7
Patch Changes
- d399f25: feat (provider/google-vertex): support public file urls in messages
1.1.6
Patch Changes
- e012cd8: feat (provider/google): add reasoning support
1.1.5
Patch Changes
- Updated dependencies [3a602ca]
1.1.4
Patch Changes
- Updated dependencies [066206e]
1.1.3
Patch Changes
- Updated dependencies [39e5c1f]
1.1.2
Patch Changes
- Updated dependencies [ed012d2]
- Updated dependencies [3a58a2e]
1.1.1
Patch Changes
- Updated dependencies [e7a9ec9]
- Updated dependencies [0a699f1]
1.1.0
Minor Changes
- 62ba5ad: release: AI SDK 4.1
Patch Changes
- Updated dependencies [62ba5ad]
1.0.17
Patch Changes
- Updated dependencies [00114c5]
1.0.16
Patch Changes
- 4eb9b41: fix (provider/google): support conversion of string enums to openapi spec
1.0.15
Patch Changes
- 7611964: feat (provider/xai): Support structured output for latest models.
1.0.14
Patch Changes
- Updated dependencies [90fb95a]
- Updated dependencies [e6dfef4]
- Updated dependencies [6636db6]
1.0.13
Patch Changes
- Updated dependencies [19a2ce7]
- Updated dependencies [19a2ce7]
- Updated dependencies [6337688]
1.0.12
Patch Changes
- 5ed5e45: chore (config): Use ts-library.json tsconfig for no-UI libs.
- Updated dependencies [5ed5e45]
1.0.11
Patch Changes
- db31e74: feat: adding audioTimestamp support to GoogleGenerativeAISettings
1.0.10
Patch Changes
- e07439a: feat (provider/google): Include safety ratings response detail.
- 4017b0f: feat (provider/google-vertex): Enhance grounding metadata response detail.
- a9df182: feat (provider/google): Add support for search grounding.
1.0.9
Patch Changes
- c0b1c7e: feat (provider/google): Add Gemini 2.0 model.
1.0.8
Patch Changes
- b7372dc: feat (provider/google): Include optional response grounding metadata.
1.0.7
Patch Changes
- Updated dependencies [09a9cab]
1.0.6
Patch Changes
- 9e54403: fix (provider/google-vertex): support empty object as usage metadata
1.0.5
Patch Changes
- 0984f0b: feat (provider/google-vertex): Rewrite for Edge runtime support.
- Updated dependencies [0984f0b]
1.0.4
Patch Changes
- 6373c60: fix (provider/google): send json schema into provider
1.0.3
Patch Changes
- Updated dependencies [b446ae5]
1.0.2
Patch Changes
- b748dfb: feat (providers): update model lists
1.0.1
Patch Changes
- Updated dependencies [c3ab5de]
1.0.0
Major Changes
- 66060f7: chore (release): bump major version to 4.0
- 0d3d3f5: chore (providers): remove baseUrl option
- 36b03b0: chore (provider/google): remove topK model setting
- 277fc6b: chore (provider/google): remove facade
Patch Changes
- c38a0db: fix (provider/google): allow empty candidates array when streaming
- 0509c34: fix (provider/google): add name/content details to tool responses
- Updated dependencies [b469a7e]
- Updated dependencies [dce4158]
- Updated dependencies [c0ddc24]
- Updated dependencies [b1da952]
- Updated dependencies [dce4158]
- Updated dependencies [8426f55]
- Updated dependencies [db46ce5]
1.0.0-canary.6
Patch Changes
- c38a0db: fix (provider/google): allow empty candidates array when streaming
1.0.0-canary.5
Patch Changes
- 0509c34: fix (provider/google): add name/content details to tool responses
1.0.0-canary.4
Major Changes
- 36b03b0: chore (provider/google): remove topK model setting
- 277fc6b: chore (provider/google): remove facade
1.0.0-canary.3
Patch Changes
- Updated dependencies [8426f55]
1.0.0-canary.2
Patch Changes
- Updated dependencies [dce4158]
- Updated dependencies [dce4158]
1.0.0-canary.1
Major Changes
- 0d3d3f5: chore (providers): remove baseUrl option
Patch Changes
- Updated dependencies [b1da952]
1.0.0-canary.0
Major Changes
- 66060f7: chore (release): bump major version to 4.0
Patch Changes
- Updated dependencies [b469a7e]
- Updated dependencies [c0ddc24]
- Updated dependencies [db46ce5]
0.0.55
Patch Changes
- 11beb9d: fix (provider/google): support tool calls without parameters
0.0.54
Patch Changes
- 1486128: feat: add supportsUrl to language model specification
- 1486128: feat (provider/google): support native file URLs without download
- 3b1b69a: feat: provider-defined tools
- Updated dependencies [aa98cdb]
- Updated dependencies [1486128]
- Updated dependencies [7b937c5]
- Updated dependencies [3b1b69a]
- Updated dependencies [811a317]
0.0.53
Patch Changes
- b9b0d7b: feat (ai): access raw request body
- Updated dependencies [b9b0d7b]
0.0.52
Patch Changes
- 7944e61: feat (provider/google): enable frequencyPenalty and presencePenalty settings
0.0.51
Patch Changes
- d595d0d: feat (ai/core): file content parts
- Updated dependencies [d595d0d]
0.0.50
Patch Changes
- 5d113fb: feat (provider/google): support fine-tuned models
0.0.49
Patch Changes
- 2e32bd0: fix (provider/google): deal with empty candidatesTokenCount
- 2e32bd0: feat (provider/google): add new models
0.0.48
Patch Changes
- Updated dependencies [273f696]
0.0.47
Patch Changes
- Updated dependencies [03313cd]
- Updated dependencies [3be7c1c]
0.0.46
Patch Changes
- 26515cb: feat (ai/provider): introduce ProviderV1 specification
- Updated dependencies [26515cb]
0.0.45
Patch Changes
- Updated dependencies [09f895f]
0.0.44
Patch Changes
- cb94042: fix (provider/google): allow disabling structured generation
0.0.43
Patch Changes
- Updated dependencies [d67fa9c]
0.0.42
Patch Changes
- 9c1f4f2: chore (provider/google): remove "models/" from model name
0.0.41
Patch Changes
- 5da9c7f: feat (provider/google): embedding support
0.0.40
Patch Changes
- Updated dependencies [f2c025e]
0.0.39
Patch Changes
- Updated dependencies [6ac355e]
0.0.38
Patch Changes
- 123134b: fix (provider/google): change default object generation mode to json
- dd712ac: fix: use FetchFunction type to prevent self-reference
- Updated dependencies [dd712ac]
0.0.37
Patch Changes
- 89b18ca: fix (ai/provider): send finish reason 'unknown' by default
- Updated dependencies [dd4a0f5]
0.0.36
Patch Changes
- Updated dependencies [4bd27a9]
- Updated dependencies [845754b]
0.0.35
Patch Changes
- 1e94ed8: feat (provider/google): send json schema in object-json mode
0.0.34
Patch Changes
- Updated dependencies [029af4c]
0.0.33
Patch Changes
- Updated dependencies [d58517b]
0.0.32
Patch Changes
- Updated dependencies [96aed25]
0.0.31
Patch Changes
- Updated dependencies [9614584]
- Updated dependencies [0762a22]
0.0.30
Patch Changes
- a8d1c9e9: feat (ai/core): parallel image download
- Updated dependencies [a8d1c9e9]
0.0.29
Patch Changes
- Updated dependencies [4f88248f]
0.0.28
Patch Changes
- 2b9da0f0: feat (core): support stopSequences setting.
- a5b58845: feat (core): support topK setting
- 4aa8deb3: feat (provider): support responseFormat setting in provider api
- 13b27ec6: chore (ai/core): remove grammar mode
- Updated dependencies [2b9da0f0]
- Updated dependencies [a5b58845]
- Updated dependencies [4aa8deb3]
- Updated dependencies [13b27ec6]
0.0.27
Patch Changes
- 2e59d266: feat (provider/google): add cachedContent optional setting
- d2b9723d: feat (provider/google): support system instructions
- 4dfe0b00: feat (provider/google): add tool support for object generation (new default mode)
0.0.26
Patch Changes
- Updated dependencies [b7290943]
0.0.25
Patch Changes
- Updated dependencies [d481729f]
0.0.24
Patch Changes
- 5edc6110: feat (ai/core): add custom request header support
- Updated dependencies [5edc6110]
- Updated dependencies [5edc6110]
- Updated dependencies [5edc6110]
0.0.23
Patch Changes
- Updated dependencies [02f6a088]
0.0.22
Patch Changes
- Updated dependencies [85712895]
- Updated dependencies [85712895]
0.0.21
Patch Changes
- 4728c37f: feat (core): add text embedding model support to provider registry
- 7910ae84: feat (providers): support custom fetch implementations
- Updated dependencies [7910ae84]
0.0.20
Patch Changes
- Updated dependencies [102ca22f]
0.0.19
Patch Changes
- 09295e2e: feat (@ai-sdk/google): automatically download image URLs
- Updated dependencies [09295e2e]
- Updated dependencies [09295e2e]
- Updated dependencies [043a5de2]
0.0.18
Patch Changes
- 8022d73e: feat (provider/google): add safety setting option on models
0.0.17
Patch Changes
- f39c0dd2: feat (provider): implement toolChoice support
- Updated dependencies [f39c0dd2]
0.0.16
Patch Changes
- 24683b72: fix (providers): Zod is required dependency
- Updated dependencies [8e780288]
0.0.15
Patch Changes
- Updated dependencies [6a50ac4]
- Updated dependencies [6a50ac4]
0.0.14
Patch Changes
- df47a34: feat (provider/google): add models/gemini-1.5-flash-latest to list of supported models
0.0.13
Patch Changes
- 9a7ec8b: feat (provider/google): add token usage information
0.0.12
Patch Changes
- Updated dependencies [0f6bc4e]
0.0.11
Patch Changes
- Updated dependencies [325ca55]
0.0.10
Patch Changes
- 20aa9dd: feat (provider/gemini): Add JSON mode for generateObject
- Updated dependencies [276f22b]
0.0.9
Patch Changes
- Updated dependencies [41d5736]
0.0.8
Patch Changes
- Updated dependencies [56ef84a]
0.0.7
Patch Changes
- 25f3350: ai/core: add support for getting raw response headers.
- Updated dependencies [d6431ae]
- Updated dependencies [25f3350]
0.0.6
Patch Changes
- Updated dependencies [eb150a6]
0.0.5
Patch Changes
- c6fc35b: Add custom header support.
0.0.4
Patch Changes
- ab60b18: Simplified model construction by directly calling provider functions. Add create... functions to create provider instances.
0.0.3
Patch Changes
- 587240b: Standardize providers to offer .chat() method
0.0.2
Patch Changes
- 2bff460: Fix build for release.
0.0.1
Patch Changes
- 7b8791d: Rename baseUrl to baseURL. Automatically remove trailing slashes.
- Updated dependencies [7b8791d]