v0.7.1
2024-05-14
What's New?
π₯ VertexAI for Firebase
We are excited to announce 0-day support for Vertex AI for Firebase with the introduction of the new langchain_firebase
package.
If you need to call the Vertex AI Gemini API directly from your mobile or web app, you can now use the ChatFirebaseVertexAI
class. This class is specifically designed for mobile and web apps, offering enhanced security options against unauthorized clients (via Firebase App Check) and seamless integration with other Firebase services. It supports the latest models (gemini-1.5-pro
and gemini-1.5-flash
) as well as tool calling.
await Firebase.initializeApp();
final chatModel = ChatFirebaseVertexAI(
defaultOptions: ChatFirebaseVertexAIOptions(
model: 'gemini-1.5-pro-preview-0514',
),
);
Check out the documentation and the sample project (a port of the official firebase_vertexai
sample).
β‘οΈ Google AI for Developers (Upgrade)
ChatGoogleGenerativeAI
and GoogleGenerativeAIEmbeddings
have been upgraded to use version v1beta
of the Gemini API (previously v1
), which supports the latest models (gemini-1.5-pro-latest
and gemini-1.5-flash-latest
).
ChatGoogleGenerativeAI
now includes support for tool calling, including parallel tool calling.
Under the hood, we have migrated the client from googleai_dart
to the official google_generative_ai
package.
β¨ OpenAI (Enhancements)
You can already use the new OpenAI's GPT-4o model. Additionally, usage statistics are now included when streaming with OpenAI
and ChatOpenAI
.
π¦ Ollama
The default models for Ollama
, ChatOllama
, and OllamaEmbeddings
have been updated to llama3
. ChatOllama
now returns a finishReason
. OllamaEmbeddings
now supports keepAlive
.
π οΈ openai_dart
The Assistant API has been enhanced to support different content types, and several bug fixes have been implemented.
The batch API now supports completions and embeddings.
π§ ollama_dart
The client has been aligned with the Ollama v0.1.36 API.
Changes
Packages with breaking changes:
Packages with other changes:
langchain
-v0.7.1
langchain_core
-v0.3.1
langchain_community
-v0.2.0+1
langchain_firebase
-v0.1.0
langchain_openai
-v0.6.1
langchain_ollama
-v0.2.1
langchain_chroma
-v0.2.0+4
langchain_mistralai
-v0.2.0+1
langchain_pinecone
-v0.1.0+4
langchain_supabase
-v0.1.0+4
openai_dart
-v0.3.2
langchain
- v0.7.1
Note: VertexAI for Firebase (
ChatFirebaseVertexAI
) is available in the newlangchain_firebase
package.
- DOCS: Add docs for ChatFirebaseVertexAI (#422). (8d0786bc)
- DOCS: Update ChatOllama docs (#417). (9d30b1a1)
langchain_core
- v0.3.1
- FEAT: Add equals to ChatToolChoiceForced (#422). (8d0786bc)
- FIX: Fix finishReason null check (#406). (5e2b0ecc)
langchain_community
- v0.2.0+1
- Update a dependency to the latest release.
langchain_google
- v0.5.0
Note:
ChatGoogleGenerativeAI
andGoogleGenerativeAIEmbeddings
now use the versionv1beta
of the Gemini API (instead ofv1
) which support the latest models (gemini-1.5-pro-latest
andgemini-1.5-flash-latest
).VertexAI for Firebase (
ChatFirebaseVertexAI
) is available in the newlangchain_firebase
package.
- FEAT: Add support for tool calling in ChatGoogleGenerativeAI (#419). (df41f38a)
- DOCS: Add Gemini 1.5 Flash to models list (#423). (40f4c9de)
- BREAKING FEAT: Migrate internal client from googleai_dart to google_generative_ai (#407). (fa4b5c37)
langchain_firebase
- v0.1.0
- FEAT: Add support for ChatFirebaseVertexAI (#422). (8d0786bc)
- DOCS: Add Gemini 1.5 Flash to models list (#423). (40f4c9de)
langchain_openai
- v0.6.1
- FEAT: Add GPT-4o to model catalog (#420). (96214307)
- FEAT: Include usage stats when streaming with OpenAI and ChatOpenAI (#406). (5e2b0ecc)
langchain_ollama
- v0.2.1
- FEAT: Handle finish reason in ChatOllama (#416). (a5e1af13)
- FEAT: Add keepAlive option to OllamaEmbeddings (#415). (32e19028)
- FEAT: Update Ollama default model from llama2 to llama3 (#417). (9d30b1a1)
- REFACTOR: Remove deprecated Ollama options (#414). (861a2b74)
openai_dart
- v0.3.2
- FEAT: Add GPT-4o to model catalog (#420). (96214307)
- FEAT: Add support for different content types in Assistants API and other fixes (#412). (97acab45)
- FEAT: Add support for completions and embeddings in batch API in openai_dart (#425). (16fe4c68)
- FEAT: Add incomplete status to RunObject in openai_dart (#424). (71b116e6)
ollama_dart
- v0.1.0
- BREAKING FEAT: Align Ollama client to the Ollama v0.1.36 API (#411). (326212ce)
- FEAT: Update Ollama default model from llama2 to llama3 (#417). (9d30b1a1)
- FEAT: Add support for done reason (#413). (cc5b1b02)
googleai_dart
- v0.1.0
π£ Check out the #announcements channel in the LangChain.dart Discord server for more details.