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 -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 -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.0.tar.gz (3.6 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_alephantai-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.0.tar.gz
Algorithm Hash digest
SHA256 f36910dde0c782617eef2c2b78a6b196c7eecb326e7d1990c3650260f4e25cfe
MD5 19cc8ee25210736dd4404583ddaa72f2
BLAKE2b-256 869960c9df152fe904eb1dbbc35c42a00edeb12512abd7c897914ee1cbfe11c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_alephantai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d76c82e404b6c7788a275dac57268270dbb4b997bdd043fe7586f530a77bcc
MD5 fabe2ff6b7c3cb0028f27dc44b6eb864
BLAKE2b-256 e98da860a3ecbb3d0e6562096c9cee5dc7904fa0eb4128953fe9c9cb0492670c

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