Change8

langchain-perplexity==1.2.0

📦 langchainView on GitHub →
5 features🐛 2 fixes🔧 2 symbols

Summary

This release introduces `PerplexityEmbeddings`, overhauls the Perplexity integration with its official SDK, and adds new fields to model profiles. It also includes several dependency bumps, notably for security and stability.

Migration Steps

  1. Ensure `langchain-core` is at least version `1.2.21` or higher.
  2. Ensure `pygments` is at least version `2.20.0` or higher due to CVE remediation.
  3. Ensure `pillow` version is `>= 12.1.1` and `< 13.0.0`.

✨ New Features

  • Add `PerplexityEmbeddings`.
  • Add content-block-centric streaming (v2) to core.
  • Add new fields and a `Makefile` target for model profiles.
  • Add `text_inputs` and `text_outputs` fields to model profiles.
  • Overhaul integration with official Perplexity SDK and Search API.

🐛 Bug Fixes

  • Add missing `ModelProfile` fields and warn on schema drift.
  • Sort generated model profiles by model ID for stable diffs.

Affected Symbols