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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f36910dde0c782617eef2c2b78a6b196c7eecb326e7d1990c3650260f4e25cfe
|
|
| MD5 |
19cc8ee25210736dd4404583ddaa72f2
|
|
| BLAKE2b-256 |
869960c9df152fe904eb1dbbc35c42a00edeb12512abd7c897914ee1cbfe11c8
|
File details
Details for the file langchain_alephantai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_alephantai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69d76c82e404b6c7788a275dac57268270dbb4b997bdd043fe7586f530a77bcc
|
|
| MD5 |
fabe2ff6b7c3cb0028f27dc44b6eb864
|
|
| BLAKE2b-256 |
e98da860a3ecbb3d0e6562096c9cee5dc7904fa0eb4128953fe9c9cb0492670c
|