langchain - ✅(Solved) Fix feat: add langchain-avian partner package [2 pull requests, 1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langchain-ai/langchain#36525Fetched 2026-04-08 02:43:53
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
cross-referenced ×2closed ×1commented ×1labeled ×1

Fix Action

Fixed

PR fix notes

PR #36524: partners: add langchain-avian package

Description (problem / solution / changelog)

Description

Adds langchain-avian as a new partner package, providing LangChain integration for Avian — an OpenAI-compatible inference API with frontier open-source models.

Resolves #36525

Models

ModelContextInput $/MOutput $/M
DeepSeek V3.2164K$0.14$0.28
Kimi K2.5128K$0.14$0.28
GLM-5128K$0.25$0.50
MiniMax M2.51M$0.15$0.30

Usage

from langchain_avian import ChatAvian

llm = ChatAvian(model="deepseek-v3.2")
response = llm.invoke("Hello, world!")

Implementation

  • ChatAvian extends BaseChatOpenAI from langchain-openai
  • Default base URL: https://api.avian.io/v1
  • API key env var: AVIAN_API_KEY
  • Follows the DeepSeek partner package pattern exactly
  • Includes unit tests and integration test scaffolding

Changed files

  • libs/partners/avian/LICENSE (added, +21/-0)
  • libs/partners/avian/Makefile (added, +71/-0)
  • libs/partners/avian/README.md (added, +54/-0)
  • libs/partners/avian/langchain_avian/__init__.py (added, +17/-0)
  • libs/partners/avian/langchain_avian/chat_models.py (added, +235/-0)
  • libs/partners/avian/langchain_avian/data/__init__.py (added, +1/-0)
  • libs/partners/avian/langchain_avian/data/_profiles.py (added, +74/-0)
  • libs/partners/avian/langchain_avian/py.typed (added, +0/-0)
  • libs/partners/avian/pyproject.toml (added, +111/-0)
  • libs/partners/avian/scripts/check_imports.py (added, +19/-0)
  • libs/partners/avian/scripts/lint_imports.sh (added, +18/-0)
  • libs/partners/avian/tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/integration_tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/integration_tests/test_chat_models.py (added, +31/-0)
  • libs/partners/avian/tests/integration_tests/test_compile.py (added, +8/-0)
  • libs/partners/avian/tests/unit_tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/unit_tests/test_chat_models.py (added, +97/-0)

PR #36526: partners: add langchain-avian package

Description (problem / solution / changelog)

Description

Adds langchain-avian as a new partner package, providing LangChain integration for Avian — an OpenAI-compatible inference API with frontier open-source models.

Resolves #36525

Models

ModelContextInput $/MOutput $/M
DeepSeek V3.2164K$0.14$0.28
Kimi K2.5128K$0.14$0.28
GLM-5128K$0.25$0.50
MiniMax M2.51M$0.15$0.30

Usage

from langchain_avian import ChatAvian

llm = ChatAvian(model="deepseek-v3.2")
response = llm.invoke("Hello, world!")

Implementation

  • ChatAvian extends BaseChatOpenAI from langchain-openai
  • Default base URL: https://api.avian.io/v1
  • API key env var: AVIAN_API_KEY
  • Follows the DeepSeek partner package pattern exactly
  • Includes unit tests and integration test scaffolding

Changed files

  • libs/partners/avian/LICENSE (added, +21/-0)
  • libs/partners/avian/Makefile (added, +71/-0)
  • libs/partners/avian/README.md (added, +54/-0)
  • libs/partners/avian/langchain_avian/__init__.py (added, +17/-0)
  • libs/partners/avian/langchain_avian/chat_models.py (added, +235/-0)
  • libs/partners/avian/langchain_avian/data/__init__.py (added, +1/-0)
  • libs/partners/avian/langchain_avian/data/_profiles.py (added, +74/-0)
  • libs/partners/avian/langchain_avian/py.typed (added, +0/-0)
  • libs/partners/avian/pyproject.toml (added, +111/-0)
  • libs/partners/avian/scripts/check_imports.py (added, +19/-0)
  • libs/partners/avian/scripts/lint_imports.sh (added, +18/-0)
  • libs/partners/avian/tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/integration_tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/integration_tests/test_chat_models.py (added, +31/-0)
  • libs/partners/avian/tests/integration_tests/test_compile.py (added, +8/-0)
  • libs/partners/avian/tests/unit_tests/__init__.py (added, +1/-0)
  • libs/partners/avian/tests/unit_tests/test_chat_models.py (added, +97/-0)

Code Example

from langchain_avian import ChatAvian

llm = ChatAvian(model="deepseek-v3.2")
response = llm.invoke("Hello, world!")
RAW_BUFFERClick to expand / collapse

Feature Request

Add Avian as a LangChain partner package (langchain-avian), providing access to frontier open-source models via an OpenAI-compatible API.

Motivation

Avian (avian.io) provides an OpenAI-compatible inference API with fast, cost-effective access to frontier open-source models:

  • DeepSeek V3.2 (164K context) — $0.14 / $0.28 per M tokens
  • Kimi K2.5 (128K context) — $0.14 / $0.28 per M tokens
  • GLM-5 (128K context) — $0.25 / $0.50 per M tokens
  • MiniMax M2.5 (1M context) — $0.15 / $0.30 per M tokens

Similar partner packages already exist for comparable providers (DeepSeek, Groq, Fireworks). Adding Avian gives LangChain users another option for affordable, high-quality open-source model inference.

Implementation

PR #36524 implements the full partner package following the existing DeepSeek package pattern, including:

  • ChatAvian class extending BaseChatOpenAI
  • Model profiles for all 4 models
  • Unit and integration tests
  • Standard package structure (pyproject.toml, Makefile, etc.)

API

from langchain_avian import ChatAvian

llm = ChatAvian(model="deepseek-v3.2")
response = llm.invoke("Hello, world!")

extent analysis

TL;DR

To add Avian as a LangChain partner package, implement the langchain-avian package by extending the existing BaseChatOpenAI class and including model profiles for the supported Avian models.

Guidance

  • Review the implementation in PR #36524 to ensure it follows the pattern established by similar partner packages, such as DeepSeek.
  • Verify that the ChatAvian class correctly extends BaseChatOpenAI and that model profiles are accurately defined for all four Avian models.
  • Test the langchain-avian package using the provided unit and integration tests to confirm its functionality.
  • Consider the cost-effectiveness and performance of the Avian models in comparison to other partner packages.

Example

from langchain_avian import ChatAvian

# Initialize the ChatAvian model
llm = ChatAvian(model="deepseek-v3.2")

# Invoke the model with a prompt
response = llm.invoke("Hello, world!")

# Print the response
print(response)

Notes

The implementation of the langchain-avian package appears to be well-structured, but its functionality and performance should be thoroughly tested before deployment.

Recommendation

Apply the workaround by implementing the langchain-avian package as described in PR #36524, as this provides a clear and structured approach to integrating Avian models with LangChain.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING