Skip to main content

LangChain integration package for Alephant AI Gateway.

Project description

langchain-alephantai

LangChain integration package for Alephant AI Gateway.

This package provides a LangChain chat model configured for Alephant AI Gateway.

pip install langchain-alephantai
from langchain_alephantai import ChatAlephantAI

llm = ChatAlephantAI(
    api_key="vk-...",
    model="gpt-4o-mini",
    session_name="langchain-chat",
)

The package also exports create_chat_openai for compatibility with the core alephantai SDK helper.

Development

Install the package with development dependencies:

python -m pip install -e ../alephantai -e ".[dev]"

Run the package tests, including LangChain standard unit tests:

pytest tests -m "not integration" -q

The standard integration tests require live Alephant Gateway credentials and are skipped by default:

ALEPHANT_API_KEY="vk-..." pytest tests/test_standard_integration.py -m integration -q

Set ALEPHANT_TEST_MODEL to override the default integration-test model.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_alephantai-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_alephantai-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_alephantai-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_alephantai-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for langchain_alephantai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec8188aac1fb342e0fecaadd39c9da765a896d11937bcb16237b44b4755d585b
MD5 9894ec71b5eaa1b8c466bb6c231b55e7
BLAKE2b-256 3be4dca9e8e3cb2cfb9914199157da392f21bacdbb30d99c16b1c61020de5a52

See more details on using hashes here.

File details

Details for the file langchain_alephantai-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_alephantai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9e7783d859f603b32d53c36b33a7e5565552cdd451c575f6d150e2fedecd6e
MD5 92d797c8d910939791a4e6cb51bfa3ba
BLAKE2b-256 5d08efecc74adfa1cc120ce4000ae4c5dd9e0af5359925ccabe7fb3f20ec91ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page