Skip to content

v0.7.1

Compare
Choose a tag to compare
@davidmigloz davidmigloz released this 14 May 22:09
· 104 commits to main since this release
621663a

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).

vertex_ai_firebase

⚑️ 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

Note: VertexAI for Firebase (ChatFirebaseVertexAI) is available in the new langchain_firebase package.

langchain_core - v0.3.1

langchain_community - v0.2.0+1

  • Update a dependency to the latest release.

langchain_google - v0.5.0

Note: ChatGoogleGenerativeAI and GoogleGenerativeAIEmbeddings now use the version v1beta of the Gemini API (instead of v1) which support the latest models (gemini-1.5-pro-latest and gemini-1.5-flash-latest).

VertexAI for Firebase (ChatFirebaseVertexAI) is available in the new langchain_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.