langchain_google 0.7.0+1
langchain_google: ^0.7.0+1 copied to clipboard
LangChain.dart integration module for Google (Gemini, Gemma, VertexAI, Vector Search, etc.).
0.7.0 #
Note: This release has breaking changes.
- REFACTOR: Migrate langchain_google to the new googleai_dart client (#788). (f28edec9)
- FEAT: Upgrade to http v1.5.0 (#785). (f7c87790)
- BREAKING BUILD: Require Dart >=3.8.0 (#792). (b887f5c6)
NEXT #
- BREAKING: Migrated from deprecated
google_generative_aitogoogleai_dartpackage- Updated ChatGoogleGenerativeAI to use the new googleai_dart client with resource-based API structure
- Updated GoogleGenerativeAIEmbeddings to use the new googleai_dart client with synchronous batch embeddings API and resource-based structure
- API calls now use resource organization (e.g.,
client.models.generateContent()instead ofclient.generateContent()) - Changed default embeddings model to
gemini-embedding-001(recommended stable model) - Removed CustomHttpClient utility (replaced by GoogleAIConfig)
- Restored support for reduced dimensionality via
dimensionsparameter
- FEAT: Added support for
presencePenalty,frequencyPenalty, andcachedContentparameters in ChatGoogleGenerativeAIOptions - DOCS: Updated model documentation to include Gemini 2.5 series models (gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite)
- DOCS: Added documentation for embeddings models including gemini-embedding-001 and flexible dimensions support
- FIX: Improved error handling in embeddings batch API with specific fallback for model field validation errors
0.6.5 #
0.6.4+1 #
0.6.3+1 #
0.6.1 #
0.6.0 #
Note:
ChatGoogleGenerativeAInow usesgemini-1.5-flashmodel by default.
- BREAKING FEAT: Update ChatGoogleGenerativeAI default model to gemini-1.5-flash (#462). (c8b30c90)
- FEAT: Add support for ChatToolChoiceRequired (#474). (bf324f36)
- FEAT: Support response MIME type and schema in ChatGoogleGenerativeAI (#461). (e258399e)
- REFACTOR: Migrate conditional imports to js_interop (#453). (a6a78cfe)
0.5.0 #
Note:
ChatGoogleGenerativeAIandGoogleGenerativeAIEmbeddingsnow use the versionv1betaof the Gemini API (instead ofv1) which support the latest models (gemini-1.5-pro-latestandgemini-1.5-flash-latest).VertexAI for Firebase (
ChatFirebaseVertexAI) is available in the newlangchain_firebasepackage.
0.4.0 #
Note: This release has breaking changes.
If you are using "function calling" check how to migrate to "tool calling".
0.3.0+2 #
- Update a dependency to the latest release.
0.3.0+1 #
- Update a dependency to the latest release.
0.3.0 #
Note: This release has breaking changes.
Migration guide
- BREAKING REFACTOR: Introduce langchain_core and langchain_community packages (#328). (5fa520e6)
- BREAKING REFACTOR: Simplify LLMResult and ChatResult classes (#363). (ffe539c1)
- BREAKING REFACTOR: Simplify Output Parsers (#367). (f24b7058)
- BREAKING REFACTOR: Remove deprecated generate and predict APIs (#335). (c55fe50f)
- REFACTOR: Simplify internal .stream implementation (#364). (c83fed22)
- FEAT: Implement .batch support (#370). (d254f929)
- FEAT: Add streaming support in ChatGoogleGenerativeAI (#360). (68bfdb04)
- FEAT: Support tuned models in ChatGoogleGenerativeAI (#359). (764b633d)
- FEAT: Add support for GoogleGenerativeAIEmbeddings (#362). (d4f888a0)
- FEAT: Support output dimensionality in GoogleGenerativeAIEmbeddings (#373). (6dcb27d8)
- FEAT: Support updating API key in Google AI client (#357). (b9b808e7)
0.2.4 #
0.2.3+2 #
- Update a dependency to the latest release.
0.2.3 #
- REFACTOR: Use cl100k_base encoding model when no tokenizer is available (#295). (ca908e80)
- REFACTOR: Make all LLM options fields nullable and add copyWith (#284). (57eceb9b)
- REFACTOR: Migrate tokenizer to langchain_tiktoken package (#285). (6a3b6466)
- FEAT: Update internal dependencies (#291). (69621cc6)
0.2.2+1 #
- Update a dependency to the latest release.
0.2.2 #
- Update a dependency to the latest release.
0.2.1+2 #
- Update a dependency to the latest release.
0.2.0+1 #
- Update a dependency to the latest release.
0.2.0 #
Note: This release has breaking changes.
Migration guides:
0.1.0+4 #
- Update a dependency to the latest release.
0.1.0+3 #
- Update a dependency to the latest release.
0.1.0+2 #
- Update a dependency to the latest release.
0.1.0 #
Note: This release has breaking changes.
Migration guide
0.0.9 #
0.0.8 #
- Updated
langchaindependency
0.0.7 #
Note: This release has breaking changes.
- FEAT: Support document title in VertexAIEmbeddings (#154). (6b763731)
- FEAT: Support task type in VertexAIEmbeddings (#151). (8a2199e2)
- DOCS: Fix invalid package topics. (f81b833a)
- DOCS: Add topics to pubspecs. (8c1d6297)
- BREAKING REFACTOR: Change embedDocuments input to
List<Document>(#153). (1b5d6fbf) - BREAKING FEAT: Add default and call options in VertexAI and ChatVertexAI (#155). (fe1b12ea)
0.0.5 #
0.0.4 #
0.0.2+2 #
- Update a dependency to the latest release.
0.0.2 #
0.0.1 #
- REFACTOR: Move Vertex AI client to its own package (#111). (d8aea156)
- FEAT: Integrate Google Vertex AI PaLM Embeddings (#100). (d777eccc)
- FEAT: Integrate Google Vertex AI PaLM Chat Model (#99). (3897595d)
- FEAT: Integrate Google Vertex AI PaLM Text model (#98). (b2746c23)
- FEAT: Add GCP Vertex AI Model Garden API client (#109). (5b9bb063)
0.0.1-dev.1 #
- Bootstrap project.